Académique Documents
Professionnel Documents
Culture Documents
Prepared By Karsten Schulz Terp-Nielsen @Oracle Denmark Presented By Bahaa Farouk @hp Egypt
Oracle ADF
Oracle ADF
Introduction
Reduces the complexity of J2EE development by providing visual and declarative development Increases development productivity
Less coding, more reuse Focus on the application, not the plumbing
Provides a flexible and extensible environment by allowing multiple technology choices and development styles Encourages J2EE best practices by implementing standard J2EE design patterns
Oracle ADF
Focus on the application, not the plumbing Consolidation and evolution of previous frameworks
Oracle ADF
J2EE & Services WYSIWYG editors UML modelers Structure pane Structure pane Property inspector No separate generation step - always synchronized Underlying code always accessible
Visual
Declarative
Oracle ADF
Clients
Business Services
Database
Oracle ADF
JDBC
Clients
Business Services
Database
Oracle ADF
ADF Model Data Controls Data Binding JSR-227: A Standard Data Binding & Data Business Access Facility for J2EE Component
Web Service TopLink
Model
Oracle ADF
ADF Model Architecture Data control: describes the values and actions defined by the business service Bindings: define how UI Client components use the values and actions in Bindings the data model Data Control Business Service
Oracle ADF
ADF Model Architecture Decouples client and business service layers Client code contains no references to the business service
L XM
Application
View
Entity
SlowPaying Customers
Customer Bill
Late Payments
Payment
ADF BC Application
View Objects Entity Objects
Customer
Customer
Order
Ord
Database
Application Module
Entity objects encapsulate business rules, logic, defaults in a consistent way for a table
View objects encapsulate SQL queries to project, join, filter, order data for external client interaction
Application module defines data model of view object usages for a complete application use case
Web / Wireless
ADF UIX JSF/ADF FACES
Struts/JSF
Java Classes
Web Services
JDBC
TopLink Queries
EJB Finders
Data Access
Java Classes
TopLink Mapping
ADF Faces
Built on top of JSF APIs A large component set >100 different components Far more advanced and interesting components
ADF model support out-of-the-box ADF Faces skins (Look and Feel)
http://www.oracle.com/technology/products/jdev/htd ocs/faq_adffaces_apache.html
ADF Faces
ADF Faces
ADF Faces also includes many of the framework features most needed by JSF developers today:
File upload support is integrated at a component level Client-side validation is automatically derived from Validators and Converters for an improved user experience A pageFlow scope makes it easier to pass values from one page to another A new hybrid state saving strategy gives developers the best of both client and server-side state saving
Renderer
UI Component
Expr. Language
JSF Page
Business Service 1
Business Service 2
Business Service 3
RDBMS
XML
URL
WS
Demonstration
Create ADF Business Components model Layout flow Make Edit page Optional: Make Create page