SlideShare a Scribd company logo
ADF DATABINDINGS & DATACONTROLS
Rohan Walia
Oracle ADF/Fusion Middleware Consultant
ABOUT MYSELF
 Oracle ADF and Fusion Middleware Consultant.
 Oracle Certified ADF & Webcenter Implementation
specialist.
 Consultant, Blogger, Speaker and open networker.
 Part of A Team of North India Chapter AIOUG.
 Passionate about Oracle Technologies.
 Have been working in Oracle/Java products from 8.5
years.
 Blog – http://rohanwalia.blogspot.in/
 Twitter - @rohanwalia17
 Linked in : sg.linkedin/in/rohanwalia
AGENDA
 Revisit ADF Architecture.
 How ADF Model Fits into the Architecture.
 ADF Model.
 More about ADF DataControls.
 Get deep into ADF Data Bindings.
 Understand Page Definition files.
 DataBindings.cpx.
 Different Type of Bindings.
 Examples and Demo.
ORACLE ADF - ARCHITECTURE
Business
Services
Data Services
Model
Controller
JSF View
Desktop Browser-Based
Office
ADF
Swing
EJB BAMADFBC PortletsBIBPELWeb ServicesJava
ADF Faces
MetadataServices(MDS)
Mobile
Database Web Services Legacy Systems Apps Unlimited
JSF ADF Controller
ADF Data Controls & ADF Bindings
Mobile
ORACLE ADF - ARCHITECTURE
Business
Services
Data Services
Model
Controller
JSF View
Desktop Browser-Based
Office
ADF
Swing
EJB BAMADFBC PortletsBIBPELWeb ServicesJava
ADF Faces
MetadataServices(MDS)
Mobile
Database Web Services Legacy Systems Apps Unlimited
JSF ADF Controller
ADF Data Controls & ADF Bindings
Mobile
ADF MODEL LAYER
 This layer is different from other J2EE
frameworks.
 New module in Web Framework by Oracle.
 Responsible for communication between
Business Services to UI and Controllers and
vice/versa.
 Consist of Data Controls and Bindings.
 Data Controls
ADF DATA CONTROLS
 They exposes Business Services to Bindings Layer.
 UI Layer interacts with Bindings and Bindings
interact with Data Controls.
 Each user gets its own instance of DataControls.
 By default there is a data control for each Root
Application Module in Business Components.
 All the instances in AM Datamodel and methods are
exposed in Data Controls.
ADF BINDINGS OVERVIEW
 Associate Business Service data or methods to the
UI Components.
 Takes Care of Row iterations in Collection Models.
 No coding is required to get the current row values.
TreeBinding DataControls
•EmployeeId
•FirstName
LasName
Employee Table
Employee ADF Table
EmployeeVO
ADF Model
Business Services
BINDINGS - FILES
 Page Definition Files.
 Each Jspx Page/ Fragment has its own file.
 <PageName>PageDef.xml file.
 Also known as Binding Container.
 Databindings.cpx file.
 Has mapping between All pages and pageDefination
files in the ViewController project.
 Known as Binding Context.
 Has name/id of all the Data Controls used by the
ViewController layer.
 Default Exception Handler which can be modified using
ErrorHandlerClass attribute.
HOW BINDINGS WORK
 Each User Session has a Binding Container.
 Consist of Bindings and Data Controls
 Each component on the page uses its own binding
for values or performing action.
s
Page
Method
Commit
Input Text
Input Text
Bindings Context
(Databindings.cpx)
Bindings Container
PageDef
Bindings Container
PageDef
Business ServicesDataControls
DataControls
Attribute Value
Bindings
Action Bindings
View Object
Attributes
Operations
PAGE DEFINATION FILE
 Each page/fragment has a page definition file.
 It’s a XML file that stores bindings of the corresponding page.
 They are created by default when any UI component is created on
the page associated to DC for first time. E.g. drag and drop VO as
Table.
 Gets created in Application Sources in ViewController Project.
 One can go to page definition through bindings tab of page.
PAGEDEFINATION DETAILS
 PageDef files consist of three sections.
 Bindings.
 Executables.
 Data Controls where executables refer to.
EXECUTABLES
 Bindings must refer executables.
 Executables are Iterators/collection models from data controls.
 Iterators sync the current row accessed in the UI to the row in
collection model and remembers it.
 VO Iterators are created whenever any VO is dragged to the
page to create a component.
 Variable iterator are used to save values between the
requests.
CREATING NEW BINDINGS
 New bindings can be created using green + icon in bindings tab.
 Different types of bindings based on the needs.
 Below is the example to create new attribute value binding which
refers to a single value (attribute) in DepartmentVOIterator.
ACCESS BINDINGS FROM PAGE
 Bindings are accessed in page/fragments using EL.
 Bindings variable (#{bindings} ) contain all the bindings
from the page definition of current page in which it is
accessed.
DepartmentName
Page Definition
Bindings
#{bindings.DepartmentName}
COMMON BINDING TYPES
 Attribute values
 Tree Bindings
 List Binding
 Action Binding
 Method Action Binding
ATTRIBUTE VALUES
 Is used to access single value from collection/Iterator
executable.
 They are accessed using
#{bindings.<bindingName>.inputVale}
TREE BINDINGS
 Tree bindings represent collection data. Can be considered
as Row Set from a query.
 Exposes data of all the rows from Iterator in the executables
to which binding point to.
 Number of columns (attributes) can be selected to be
included in the Tree bindings.
 It refers Iterators collectionModel property for getting rows.
LIST BINDING
 Used to create dropdowns (List of Values)
 List can be static list or dynamic based on
 Value attribute is bind to
ACTION BINDING
 Added when any operations from
DataControls are dragged to the
page as buttons or links.
 Operations like create, createInsert
etc. They are specific to View
Objects instance.
 AM Operations like commit,
rollback.
 They are called in page through
#{bindings}
 They can be called in Managed
Bean for programmatic access.
METHOD ACTION BINDINGS
 Almost same as action
bindings.
 Are used to expose custom
methods in ADF BC to the
view layer.
DEMO
THANKS

More Related Content

What's hot

Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentation
guest0df6b0
 
Oracle Forms Creation-List of Values (LOV)
Oracle Forms Creation-List of Values (LOV)Oracle Forms Creation-List of Values (LOV)
Oracle Forms Creation-List of Values (LOV)
Sekhar Byna
 
Introduction to the Web API
Introduction to the Web APIIntroduction to the Web API
Introduction to the Web API
Brad Genereaux
 
LINQ
LINQLINQ
Introduction to ASP.NET Core
Introduction to ASP.NET CoreIntroduction to ASP.NET Core
Introduction to ASP.NET Core
Avanade Nederland
 
The virtual DOM and how react uses it internally
The virtual DOM and how react uses it internallyThe virtual DOM and how react uses it internally
The virtual DOM and how react uses it internally
Clóvis Neto
 
Introduction to ajax
Introduction  to  ajaxIntroduction  to  ajax
Introduction to ajax
Pihu Goel
 
Spring Framework - AOP
Spring Framework - AOPSpring Framework - AOP
Spring Framework - AOP
Dzmitry Naskou
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
kingshuk_goswami
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Angular
AngularAngular
Angular
Lilia Sfaxi
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web APIhabib_786
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
rainynovember12
 
Linq
LinqLinq
Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
Ado.net
Ado.netAdo.net
Ado.net
Om Prakash
 
Oracle Concurrent Program Setup document
Oracle Concurrent Program Setup  documentOracle Concurrent Program Setup  document
Oracle Concurrent Program Setup document
venkatesh gurusamy
 
Mongodb basics and architecture
Mongodb basics and architectureMongodb basics and architecture
Mongodb basics and architecture
Bishal Khanal
 

What's hot (20)

Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentation
 
Oracle Forms Creation-List of Values (LOV)
Oracle Forms Creation-List of Values (LOV)Oracle Forms Creation-List of Values (LOV)
Oracle Forms Creation-List of Values (LOV)
 
Introduction to the Web API
Introduction to the Web APIIntroduction to the Web API
Introduction to the Web API
 
LINQ
LINQLINQ
LINQ
 
Introduction to ASP.NET Core
Introduction to ASP.NET CoreIntroduction to ASP.NET Core
Introduction to ASP.NET Core
 
The virtual DOM and how react uses it internally
The virtual DOM and how react uses it internallyThe virtual DOM and how react uses it internally
The virtual DOM and how react uses it internally
 
Introduction to ajax
Introduction  to  ajaxIntroduction  to  ajax
Introduction to ajax
 
Spring Framework - AOP
Spring Framework - AOPSpring Framework - AOP
Spring Framework - AOP
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Oracle Apps Technical Syllabus
Oracle Apps Technical SyllabusOracle Apps Technical Syllabus
Oracle Apps Technical Syllabus
 
Angular
AngularAngular
Angular
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 
Linq
LinqLinq
Linq
 
Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
 
Ado.net
Ado.netAdo.net
Ado.net
 
Oracle Concurrent Program Setup document
Oracle Concurrent Program Setup  documentOracle Concurrent Program Setup  document
Oracle Concurrent Program Setup document
 
Mongodb basics and architecture
Mongodb basics and architectureMongodb basics and architecture
Mongodb basics and architecture
 

Similar to ADF Bindings & Data Controls

Oracle fusion dba online training
Oracle fusion  dba online trainingOracle fusion  dba online training
Oracle fusion dba online training
Glory IT Technologies Pvt. Ltd.
 
Metamorphosis from Forms to Java: A technical lead's perspective, part II
Metamorphosis from Forms to Java:  A technical lead's perspective, part IIMetamorphosis from Forms to Java:  A technical lead's perspective, part II
Metamorphosis from Forms to Java: A technical lead's perspective, part II
Michael Fons
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
Julie Iskander
 
J2EE pattern 5
J2EE pattern 5J2EE pattern 5
J2EE pattern 5
Naga Muruga
 
Customizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADFCustomizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADF
Rohan Walia
 
Overview of atg framework
Overview of atg frameworkOverview of atg framework
Overview of atg framework
Yousuf Roushan
 
An Oracle ADF Introduction
An Oracle ADF IntroductionAn Oracle ADF Introduction
An Oracle ADF Introduction
Jean-Marc Desvaux
 
Oracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africaOracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africamagnificsmile
 
Oracle Application Development Frame Work (ADF) Online Training
Oracle Application Development Frame Work (ADF) Online TrainingOracle Application Development Frame Work (ADF) Online Training
Oracle Application Development Frame Work (ADF) Online Training
Glory IT Technologies
 
Intro
IntroIntro
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
Achmad Solichin
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
Achmad Solichin
 
Building social and RESTful frameworks
Building social and RESTful frameworksBuilding social and RESTful frameworks
Building social and RESTful frameworksbrendonschwartz
 
Olap
OlapOlap
Olap
preksha33
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -Kenneth Peeples
 
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
seasofttraining
 
Document databases
Document databasesDocument databases
Document databases
Qframe
 
Ado.net
Ado.netAdo.net
Ado.net
dina1985vlr
 

Similar to ADF Bindings & Data Controls (20)

Oracle fusion dba online training
Oracle fusion  dba online trainingOracle fusion  dba online training
Oracle fusion dba online training
 
Metamorphosis from Forms to Java: A technical lead's perspective, part II
Metamorphosis from Forms to Java:  A technical lead's perspective, part IIMetamorphosis from Forms to Java:  A technical lead's perspective, part II
Metamorphosis from Forms to Java: A technical lead's perspective, part II
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
 
J2EE pattern 5
J2EE pattern 5J2EE pattern 5
J2EE pattern 5
 
Customizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADFCustomizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADF
 
Overview of atg framework
Overview of atg frameworkOverview of atg framework
Overview of atg framework
 
An Oracle ADF Introduction
An Oracle ADF IntroductionAn Oracle ADF Introduction
An Oracle ADF Introduction
 
Oracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africaOracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africa
 
Oracle Application Development Frame Work (ADF) Online Training
Oracle Application Development Frame Work (ADF) Online TrainingOracle Application Development Frame Work (ADF) Online Training
Oracle Application Development Frame Work (ADF) Online Training
 
Intro
IntroIntro
Intro
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
Building social and RESTful frameworks
Building social and RESTful frameworksBuilding social and RESTful frameworks
Building social and RESTful frameworks
 
Olap
OlapOlap
Olap
 
Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -
 
dvprimer-concepts
dvprimer-conceptsdvprimer-concepts
dvprimer-concepts
 
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
Oracle ADF Online Training By Seasoft IT Solutions | Orace ADF Course Content...
 
Document databases
Document databasesDocument databases
Document databases
 
Ado.net
Ado.netAdo.net
Ado.net
 

Recently uploaded

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 

Recently uploaded (20)

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 

ADF Bindings & Data Controls

  • 1. ADF DATABINDINGS & DATACONTROLS Rohan Walia Oracle ADF/Fusion Middleware Consultant
  • 2. ABOUT MYSELF  Oracle ADF and Fusion Middleware Consultant.  Oracle Certified ADF & Webcenter Implementation specialist.  Consultant, Blogger, Speaker and open networker.  Part of A Team of North India Chapter AIOUG.  Passionate about Oracle Technologies.  Have been working in Oracle/Java products from 8.5 years.  Blog – http://rohanwalia.blogspot.in/  Twitter - @rohanwalia17  Linked in : sg.linkedin/in/rohanwalia
  • 3. AGENDA  Revisit ADF Architecture.  How ADF Model Fits into the Architecture.  ADF Model.  More about ADF DataControls.  Get deep into ADF Data Bindings.  Understand Page Definition files.  DataBindings.cpx.  Different Type of Bindings.  Examples and Demo.
  • 4. ORACLE ADF - ARCHITECTURE Business Services Data Services Model Controller JSF View Desktop Browser-Based Office ADF Swing EJB BAMADFBC PortletsBIBPELWeb ServicesJava ADF Faces MetadataServices(MDS) Mobile Database Web Services Legacy Systems Apps Unlimited JSF ADF Controller ADF Data Controls & ADF Bindings Mobile
  • 5. ORACLE ADF - ARCHITECTURE Business Services Data Services Model Controller JSF View Desktop Browser-Based Office ADF Swing EJB BAMADFBC PortletsBIBPELWeb ServicesJava ADF Faces MetadataServices(MDS) Mobile Database Web Services Legacy Systems Apps Unlimited JSF ADF Controller ADF Data Controls & ADF Bindings Mobile
  • 6. ADF MODEL LAYER  This layer is different from other J2EE frameworks.  New module in Web Framework by Oracle.  Responsible for communication between Business Services to UI and Controllers and vice/versa.  Consist of Data Controls and Bindings.  Data Controls
  • 7. ADF DATA CONTROLS  They exposes Business Services to Bindings Layer.  UI Layer interacts with Bindings and Bindings interact with Data Controls.  Each user gets its own instance of DataControls.  By default there is a data control for each Root Application Module in Business Components.  All the instances in AM Datamodel and methods are exposed in Data Controls.
  • 8. ADF BINDINGS OVERVIEW  Associate Business Service data or methods to the UI Components.  Takes Care of Row iterations in Collection Models.  No coding is required to get the current row values. TreeBinding DataControls •EmployeeId •FirstName LasName Employee Table Employee ADF Table EmployeeVO ADF Model Business Services
  • 9. BINDINGS - FILES  Page Definition Files.  Each Jspx Page/ Fragment has its own file.  <PageName>PageDef.xml file.  Also known as Binding Container.  Databindings.cpx file.  Has mapping between All pages and pageDefination files in the ViewController project.  Known as Binding Context.  Has name/id of all the Data Controls used by the ViewController layer.  Default Exception Handler which can be modified using ErrorHandlerClass attribute.
  • 10. HOW BINDINGS WORK  Each User Session has a Binding Container.  Consist of Bindings and Data Controls  Each component on the page uses its own binding for values or performing action. s Page Method Commit Input Text Input Text Bindings Context (Databindings.cpx) Bindings Container PageDef Bindings Container PageDef Business ServicesDataControls DataControls Attribute Value Bindings Action Bindings View Object Attributes Operations
  • 11. PAGE DEFINATION FILE  Each page/fragment has a page definition file.  It’s a XML file that stores bindings of the corresponding page.  They are created by default when any UI component is created on the page associated to DC for first time. E.g. drag and drop VO as Table.  Gets created in Application Sources in ViewController Project.  One can go to page definition through bindings tab of page.
  • 12. PAGEDEFINATION DETAILS  PageDef files consist of three sections.  Bindings.  Executables.  Data Controls where executables refer to.
  • 13. EXECUTABLES  Bindings must refer executables.  Executables are Iterators/collection models from data controls.  Iterators sync the current row accessed in the UI to the row in collection model and remembers it.  VO Iterators are created whenever any VO is dragged to the page to create a component.  Variable iterator are used to save values between the requests.
  • 14. CREATING NEW BINDINGS  New bindings can be created using green + icon in bindings tab.  Different types of bindings based on the needs.  Below is the example to create new attribute value binding which refers to a single value (attribute) in DepartmentVOIterator.
  • 15. ACCESS BINDINGS FROM PAGE  Bindings are accessed in page/fragments using EL.  Bindings variable (#{bindings} ) contain all the bindings from the page definition of current page in which it is accessed. DepartmentName Page Definition Bindings #{bindings.DepartmentName}
  • 16. COMMON BINDING TYPES  Attribute values  Tree Bindings  List Binding  Action Binding  Method Action Binding
  • 17. ATTRIBUTE VALUES  Is used to access single value from collection/Iterator executable.  They are accessed using #{bindings.<bindingName>.inputVale}
  • 18. TREE BINDINGS  Tree bindings represent collection data. Can be considered as Row Set from a query.  Exposes data of all the rows from Iterator in the executables to which binding point to.  Number of columns (attributes) can be selected to be included in the Tree bindings.  It refers Iterators collectionModel property for getting rows.
  • 19. LIST BINDING  Used to create dropdowns (List of Values)  List can be static list or dynamic based on  Value attribute is bind to
  • 20. ACTION BINDING  Added when any operations from DataControls are dragged to the page as buttons or links.  Operations like create, createInsert etc. They are specific to View Objects instance.  AM Operations like commit, rollback.  They are called in page through #{bindings}  They can be called in Managed Bean for programmatic access.
  • 21. METHOD ACTION BINDINGS  Almost same as action bindings.  Are used to expose custom methods in ADF BC to the view layer.
  • 22. DEMO