Oracle JHeadstart release 11 can help you in building enterprise-class fusion web applications that leverage powerful ADF 11 features like page templates, page fragments, (un)bounded taskflows, XML-driven menus, model-based List of Values, and all the new rich user interface elements. This presentation explains how JHeadstart can save you months of development time by providing a set of sophisticated reusable components and by automating ADF development tasks through powerful utilities and generators.
Best practices and proven design patterns auto-implemented by JHeadstart are also discussed.
2. <Insert Picture Here>
Oracle JHeadstart – Superior Productivity in Developing Best
Practice Oracle ADF Applications
Steven Davelaar
Oracle, Technical Director
3. Agenda
• What is JHeadstart
• Seeing is believing: demo!
• Generated ADF design patterns
• JHeadstart reusable components
• JHeadstart generator templates
• (JHeadstart Forms2ADF Generator)
3
4. What is JHeadstart?
• JDeveloper extension for template-based automation of
ADF development tasks
– Development Toolkit on top of ADF
– Builds on ADF Runtime architecture
– Fully integrates with ADF Design Time
• Takes declarative development to the next level
– Generates complete ADF applications
– Like the Designer Forms Generator generates Forms apps,
JHeadstart generates ADF apps
• Transforms Oracle Forms into ADF applications
4
5. JHeadstart – Main Components
• JHeadstart Application Generator (JAG)
– Generates best-practice web application
• JHeadstart Utilities
– Automate other ADF development tasks
– Perform quality checks
• JHeadstart Runtime
– Reusable components to implement complex functionality
– Auto-implements host of best practices
• JHeadstart Forms2ADF Generator
– Create fully-functional ADF app based on forms definitions
• JHeadstart Developer’s Guide
5
6. JHeadstart Application Generator (JAG)
• Generates ADF Faces pages and fragments
• Generates (un)bounded task flows
• Generates page definitions (data bindings)
• Does NOT generate any Java code, only XML!
• JAG is driven by
– XML-based Application Definition file, created and edited
through GUI Wizard (JDeveloper add-in)
– Velocity Generator Templates
• Generated output is 100% customizable
6
7. Application
Application
Definition
Definition Generation Process
JHeadstart JSF JSP
JSF JSP
ADF Faces View
Application ADF Faces
Definition
Wizard
JSF+ADFc
JSF+ADFc Controller
ADF BC
ADF BC ADF Model
ADF Model
metadata
metadata
Data Bindings
Data Bindings Model
Data Controls
Data Controls
ADF
ADF
ADF Business
ADF
Business
Business
Business
Business Services
Components
Components
Components
Components
JDeveloper
ADF BC Wizard
7
8. Application
Application
Definition
Definition
JHeadstart JSF JSP
JSF JSP
ADF Faces View
Application ADF Faces
Definition
Wizard
JSF
JSF Controller
ADF BC
ADF BC ADF Model
ADF Model
metadata
metadata
Data Bindings
Data Bindings Model
Data Controls
Data Controls
ADF
ADF
ADF Business
ADF
Business
Business
Business
Business Services
Components
Components
Components
Components
JDeveloper
ADF BC Wizard
8
9. Application
Application Generator
Generator
Definition
Definition Templates
Templates Generation Process
JHeadstart JSF JSP
JSF JSP
JSF JSP
JSF JSP
ADF Faces View
Application ADF Faces
ADF Faces
ADF Faces
Definition
Wizard
JSF
JSF Controller
JSF+ADFc
JSF+ADFc
ADF BC
ADF BC ADF Model
ADF Model
ADF Model
ADF Model
metadata
metadata JHeadstart
Data Bindings
Data Bindings Model
Application Data Bindings
Data Bindings
Generator Data Controls
Data Controls
Data Controls
Data Controls
ADF
ADF
ADF Business
ADF
Business
Business
Business
Business Services
Components
Components
Components
Components
JDeveloper
ADF BC Wizard
9
22. JHeadstart Uses Best Practice ADF Design Patterns
• “One-page” application (UIShell)
– Generated bounded task flows use page fragments and can be
embedded as ADF region in page
– One page with dynamic region driven by application menu
• Generated task flows are highly reusable
– Use with traditional menu structure
– Use with dynamic tabs
– Use in handbuilt drag-and-drop pages
– Use as child within another region
– Use with human workflow task list
– Use as popup / list of values
– Use as WebCenter portlet
– Add at runtime using WebCenter Composer
22
23. JHeadstart Uses Best Practice ADF Design Patterns
• Generated task flows are highly configurable
– Configure to start in create mode (new row)
– Configure to show one specific row (deeplinking)
– Configure to go to summary or detail page
– Configure to hide action buttons (Save, Cancel, Nav. Buttons)
– Configure to hide search region
– Configure to show in read-only mode
• Generates layout best practices
– Easy switching between stretching and non-stretching layouts
• Region interaction design patterns are auto-
implemented
23
27. Reusable Application Components
• Fine-grained permission-based authorization,
seamlessly integrated with ADF Security
• Dynamic menu structure
• Flex Items: Adding new items at runtime
• Runtime customization of standard items
– Show/hide
– Make mandatory
• Runtime translation/modification of page text
27
28. Reusable Application Components - Packaging
• DDL script to Create Table Structure
• Predefined Business Components with application
module that is nested within own app module
• JHeadstart Application Definitions generated, that can
be used to generate admin screens
• SQL scripts are generated and executed to populate
the database tables
– Roles, Permissions (Group Access/Action), Grants
– Module and menu items
– Translations
– Flex Region Definitions
28
29. Application
Application Generator
Generator JHeadstart Application
Definition
Definition Templates
Templates Components
Security
Security
Application
Application JSF JSP
JSF JSP
Definition ADF Faces View
Definition ADF Faces
Menu
Menu
Application
Application JSF+ADFc
JSF+ADFc Controller
Definition
Definition
Flex Items
Flex Items
Application
Application
JHeadstart Data Bindings
Data Bindings
Definition Application Model
Definition
Data Controls
Data Controls
Generator
Security
Security Flex Item
Flex Item Business
Components
Components ADF Business Components Components
Components
ADF Business Components Services
Menu
Menu NLS
NLS
Components
Components Components
Components
29
36. Recommended Approach to Customizing Generated
Output
• Use the visual design time tools in JDeveloper to
make any modifications you like
– Drag and drop from control palette
– Structure pane
– Property inspector
– ..
• Run the modified page and verify it works as
expected
• Move the custom page code to a custom template to
preserve the modifications upon regeneration
• (or switch off page generation flag and skip last step)
36
37. JHeadstart Generator Templates
– The content of generated pages is completely
driven by Velocity generator templates
– The templates are categorized in groups
• Page, pageComponent, button, item
(table/form/search), search, misc, etc.
– Which template is used for which page “snippet” is
handled by defaultTemplateBindings.jtp file.
– You can customize anything that is generated
onto a page by creating a custom template
37
59. What about PL/SQL Logic?
• Custom PL/SQL Logic not automatically migrated to
Java
• JHeadstart prefers sound multi-tier target architecture
(ADF MVC) above automated PL/SQL migration
– Analyze the logic
– Determine in which tier(s) it should be implemented
– Determine how to implement it
• Application Definition Editor shows all form, block and
item triggers and all program units
– Good overview of all custom PL/SQL logic
– Ability to move logic to database, to ADF BC or to JSF
managed beans
59
61. JHeadstart Superior Productivity – In Many Ways
• Saves you months to figure out ADF best practices
• Saves you months with ready-to-use reusable
components
• Maximizes reuse
– JAG is actually RTG: Reusable Taskflows Generator
• Facilitates agile development
– Start with generating functional prototypes that evolve into
working system
• Eases upgrade to new JDeveloper releases
– Technology-agnostic metadata layer!
61
62. JHeadstart – Next Steps
• Get more info at “JHeadstart Product Center” (google):
– Developer’s guide
– Tutorial
– Online Forms2ADF demonstrations
– Customer success stories
– Frequently asked questions
• Evaluate JHeadstart
– JDeveloper Help -> Check for Updates -> Open Source and
Partner Extensions
– Do the tutorial
• Buy JHeadstart
• Ask additional questions at OTN JHeadstart Discussion Forum
or email idevcoe_nl@oracle.com
62