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 (20)

PPTX
Node.js Express
Eyal Vardi
 
PPT
Struts
s4al_com
 
PPTX
Getting started with entity framework
Lushanthan Sivaneasharajah
 
PDF
Spring MVC Framework
Hùng Nguyễn Huy
 
PDF
Spring Framework - AOP
Dzmitry Naskou
 
PDF
Angular Directives
iFour Technolab Pvt. Ltd.
 
PDF
Getting Started ASP.NET Core Training ,Tutorial - Beginner to Advance
Dot Net Tricks
 
PDF
Spring Security
Knoldus Inc.
 
PPTX
Spring Web MVC
zeeshanhanif
 
PDF
Spring Boot
koppenolski
 
PDF
Vue.js for beginners
Julio Bitencourt
 
PDF
Workshop 4: NodeJS. Express Framework & MongoDB.
Visual Engineering
 
PPTX
Node js Introduction
sanskriti agarwal
 
PPT
Jena
yuhana
 
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
PDF
Angular directives and pipes
Knoldus Inc.
 
PPTX
Microsoft Azure Platform-as-a-Service (PaaS)
Chris Dufour
 
PDF
Spring Boot
Pei-Tang Huang
 
PDF
Amazon RDS 살펴보기 (김용우) - AWS 웨비나 시리즈
Amazon Web Services Korea
 
PPT
Java Persistence API (JPA) Step By Step
Guo Albert
 
Node.js Express
Eyal Vardi
 
Struts
s4al_com
 
Getting started with entity framework
Lushanthan Sivaneasharajah
 
Spring MVC Framework
Hùng Nguyễn Huy
 
Spring Framework - AOP
Dzmitry Naskou
 
Angular Directives
iFour Technolab Pvt. Ltd.
 
Getting Started ASP.NET Core Training ,Tutorial - Beginner to Advance
Dot Net Tricks
 
Spring Security
Knoldus Inc.
 
Spring Web MVC
zeeshanhanif
 
Spring Boot
koppenolski
 
Vue.js for beginners
Julio Bitencourt
 
Workshop 4: NodeJS. Express Framework & MongoDB.
Visual Engineering
 
Node js Introduction
sanskriti agarwal
 
Jena
yuhana
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
Angular directives and pipes
Knoldus Inc.
 
Microsoft Azure Platform-as-a-Service (PaaS)
Chris Dufour
 
Spring Boot
Pei-Tang Huang
 
Amazon RDS 살펴보기 (김용우) - AWS 웨비나 시리즈
Amazon Web Services Korea
 
Java Persistence API (JPA) Step By Step
Guo Albert
 

Similar to ADF Bindings & Data Controls (20)

PDF
Mastering Oracle ADF Bindings
Euegene Fedorenko
 
PPTX
Oracle ADF Training| Oracle ADF Developer Training
Vasudha India
 
PDF
Oracle ADF Architecture TV - Development - Programming Best Practices
Chris Muir
 
PPS
Ado.net session02
Niit Care
 
PDF
Oracle fusion adf_online_training_in_africa
magnificsmile
 
PPTX
Advance Webpage Devlopment .NET
PandeyABHISHEK1
 
PPTX
Oracel ADF Introduction
Hojjat Abedie
 
PDF
ADF Introduction By Sandeep Sharda
Er. Sndp Srda
 
PPTX
An Oracle ADF Introduction
Jean-Marc Desvaux
 
PPTX
Ch 7 data binding
Madhuri Kavade
 
PPTX
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
ABTO Software
 
PPTX
Demonstrating ADF in Action through screenhots - getting (re)acquainted with ...
Lucas Jellema
 
PDF
Oracle ADF Tutorial
Deepak Bhagat
 
PPTX
Datasource in asp.net
Sireesh K
 
PPTX
Oracle Application Developmenr Framework
Gurpreet singh
 
DOC
Best Oracle adf online training
Mindmajix Technologies
 
KEY
WPF: Working with Data
LearnNowOnline
 
PPTX
Reuse in adf applications
Matthieu De Graaf
 
PDF
Advanced Web Programming Chapter 10
RohanMistry15
 
PPTX
Oracle adf
Habib Eslami
 
Mastering Oracle ADF Bindings
Euegene Fedorenko
 
Oracle ADF Training| Oracle ADF Developer Training
Vasudha India
 
Oracle ADF Architecture TV - Development - Programming Best Practices
Chris Muir
 
Ado.net session02
Niit Care
 
Oracle fusion adf_online_training_in_africa
magnificsmile
 
Advance Webpage Devlopment .NET
PandeyABHISHEK1
 
Oracel ADF Introduction
Hojjat Abedie
 
ADF Introduction By Sandeep Sharda
Er. Sndp Srda
 
An Oracle ADF Introduction
Jean-Marc Desvaux
 
Ch 7 data binding
Madhuri Kavade
 
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
ABTO Software
 
Demonstrating ADF in Action through screenhots - getting (re)acquainted with ...
Lucas Jellema
 
Oracle ADF Tutorial
Deepak Bhagat
 
Datasource in asp.net
Sireesh K
 
Oracle Application Developmenr Framework
Gurpreet singh
 
Best Oracle adf online training
Mindmajix Technologies
 
WPF: Working with Data
LearnNowOnline
 
Reuse in adf applications
Matthieu De Graaf
 
Advanced Web Programming Chapter 10
RohanMistry15
 
Oracle adf
Habib Eslami
 
Ad

Recently uploaded (20)

PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
July Patch Tuesday
Ivanti
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Ad

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