+ All Categories
Home > Documents > Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the...

Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the...

Date post: 27-Dec-2015
Category:
Upload: camilla-spencer
View: 228 times
Download: 2 times
Share this document with a friend
34
Transcript
Page 1: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.
Page 2: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.
Page 3: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Grant RonaldPrincipal Product Manager

Page 4: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

JDeveloper and ADF for Forms Developers: Taking it to the next level

Page 5: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Agenda

• What you should know• What this presentation is• What this presentation isn’t!

• Getting into the code• Extending the business logic

• Common “Forms trigger” points• Searching and querying• Calling a stored procedure from ADF BC

• Extending the user interface• Conditional page flow• Stacked canvases

Page 6: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

What You Should Know

• JDeveloper• ADF• ADF Business Components• JSF

Page 7: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

ADF Architecture

ADF Data Binding/ Data Control

Struts JSF

JSF/ADF FacesJSPADF Swing

Java Classes

EJB ADF Business

Components

WebServices

PortletsJSR-168WSRP

View

Controller

Model(JSR 227)

Business Services

Toplink

Relational Data XML Data Packaged AppsLegacy Data

Data Source

Metadata Services (MDS)

Page 8: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

ADF Business Components

Customer

Order

LineItem

OrdView

CustView

OrdView

OrdView

CustView

Application Module

View Objects

Entity Objects

Page 9: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Getting into the code

• ADF BC doesn’t “generate code”• “default” XML definition

• Allows you to expose more and more of the implementation code

Page 10: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Getting into the code

• Exposing code in the Entity Object

Page 11: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Getting into the code

• Exposing code in the View Object

Page 12: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Getting into the code

• Exposing code in the Application Module

Page 13: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Common “Forms Trigger” points

• Validation• When-Validate-Item, When-Validate-Record

• Query • Pre-Query, Post-Query

• Transaction• Pre-Commit, On-Commit, Post-Commit• Pre-Insert, On-Insert, Post-Insert• Pre-Delete, On-Delete, Post-Delete

Page 14: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Validation Triggers

• When-Validate-Item• When-Validate-Record

Page 15: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Query Triggers

• Post-Query• Non-base table population• Running totals

• Pre-Query• Modify query

Page 16: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Transactional Triggers

• Insert, Delete, Update• Pre-• Post-• On-

Page 17: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

The Best of the Rest

• When-Create-Record• When-Remove-Record• When-Button-Pressed (UI processing – later)

Page 18: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Adding “trigger” code

Page 19: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Searching and Querying

• Parameterize search form• ADF Search Form• ADF provides option to “ExecuteWithParams”

• Execute Query

Page 20: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Adding search code

Page 21: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Calling a stored procedure

Page 22: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Next Level – UI Processing

• Auto Submit• Conditional UI processing

• Expression Language validation• Backing/Managed Beans

• “Stacked canvases”• Conditional page flow

Page 23: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Auto Submit

• HTML UI validates only on POST• ADF Faces provides Partial Page Rendering• AutoSubmit submits page when field changed• PartialTrigger defines fields that re-act to changes

Page 24: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Auto Submit

Page 25: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Conditional UI Processing

• JSF Expression Language (EL)• Backing/Managed Beans

Page 26: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Stacked Canvas

• <af:switcher>• Number of facets• Each facet is a “canvas”• Property to defines which

canvas to render

Page 27: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Stacked Canvas

Page 28: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Conditional Page Flow

• Button action returns a string• When-Button-Pressed

• Define page flow based on runtime criteria

Page 29: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

D E M O N S T R A T I O N

Conditional Page Flow

Page 30: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Summary

• ADF provides Forms developers with• All your favorite triggers• Many of the common Forms concepts

• Stacked canvases• Defining search criteria• Conditional page flow

• And a lot more besides!

• JDeveloper and ADF continue to provide more and more productivity features for Forms developers

Page 31: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

otn.oracle.com

Join Over 4,500,000 Developers!

Free Software Downloads

otn.oracle.com/formsdesignerj2ee

Free Technical Advice

Page 32: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

AQ&

Page 33: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Oracle ADFProductivity with Choice

Page 34: Grant Ronald Principal Product Manager JDeveloper and ADF for Forms Developers: Taking it to the next level.

Recommended