the fast track to learning oracle adf - nordic ace tour … · the fast track to learning oracle...

7
The Fast Track to Learning Oracle ADF Nordic ACE Director Tour 2015 [email protected], www.vesterli.com © Sten Vesterli 2015 1 The Fast Track to Learning Oracle ADF Nordic ACE Director Tour 2015 Sten E. Vesterli [email protected] Who am I? Name: Sten Vesterli Mission: To make the world a better place by helping people use appropriate information technology to achieve their goals 20 years of Oracle experience Oracle ACE Director since 2007 ODTUG Best Speaker 2009 Books Scott/Tiger Customers Demo application

Upload: dangnga

Post on 06-Feb-2018

233 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF!

Nordic ACE Director Tour 2015!

Sten E. [email protected] !

Who am I?!•  Name: Sten Vesterli!•  Mission: To make the world a better

place by helping people use appropriate information technology to achieve their goals!

•  20 years of Oracle experience!•  Oracle ACE Director since 2007!•  ODTUG Best Speaker 2009!

Books!

Scott/Tiger Customers!

Demo application!

Page 2: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 2!

The Straight Road!

Work With the Grain!

The Seven ADF Skills!1.  Business Components!2.  Task flows and pages!3.  Adding business logic (Java)!4.  Enterprise ADF!5.  Logging and debugging!6.  ADF Security!7.  Build and deploy! Watch – Do – Teach!

Watch: Videos! Do: Tutorials + projects!

Page 3: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 3!

Teach: Write, Speak! Mentoring!

The Five Skill Levels!•  Novice!•  Apprentice!•  Journeyman !•  Master!•  Artisan !

Application Complexity!•  Very Simple!•  Simple!•  Normal!•  Complex!•  Very Complex!

Very Simple App!•  Uses a few simple standard components !•  Default behavior to query and modify

database data in tables!•  Only few screens ( < 20)!•  Must be acceptable that application

functionality and visual appearance is dictated by ADF defaults.!

Skill Requirements, Very Simple!

•  One or more ADF developers at the apprentice level!

•  Few skills apart from ADF are needed.!

Page 4: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 4!

Simple App!•  Uses standard UI components !•  Simple declarative validation!•  Data is stored directly in database tables!•  Can consist of many screens!•  Must be acceptable that application

functionality and visual appearance is dictated by ADF defaults.!

Skill Requirements, Simple!•  At least one ADF developer at the

journeyman level !•  Basic Java and database knowledge !

Normal App!•  Uses all standard UI components !•  Mainly default functionality. !•  Most validation is declarative. !•  Only few or simple integrations with external

systems. !•  Data is stored directly in database tables. !•  Must be acceptable that application

functionality and visual appearance might be constrained by ADF standard components.!

Skill Requirements, Normal!•  At least one ADF developer at the

master level !•  At least one ADF journeyman. !•  Average Java skills.!

Complex App!•  The application uses PL/SQL APIs instead of

tables!•  The application uses data controls based on

Web Services!•  The application is integrated with external

systems!•  The application makes use of customization!•  The application makes use of custom skins!•  The application is large (200+ screens)!

Skill Requirements, Complex!•  At least one ADF master developer !•  Several at the journeyman level. !•  Some team members with advanced Java

skills !•  Some team members with good grasp of

common web technology skills (HTTP, HTML, JavaScript, and CSS). !

•  Might need web services, skinning, customization etc!

Page 5: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 5!

Very complex!•  The application uses custom

components!•  The application deviates significantly

from normal ADF behavior!•  The application is very large (500+

screens)!

Skill Requirements, Very Complex!•  Access to at least one ADF developer at the

Artisan level!•  At least on ADF master developer!•  Several ADF journeymen. !•  Same additional skills as for the complex

application !•  Very good understanding of HTTP, JSF

Lifecycle and JavaScript is needed to bend the ADF framework to your will. !

Learning Business Components!

•  Build using JDeveloper wizards!– Entity Objects!– View Objects!– Application Modules!

•  Examine settings in JDeveloper!

Learning Task Flows!•  Use views (pages)!•  Use methods (code)!•  Add parameters !•  Run in debug mode!

– Use Expression Language evaluator!– Set breakpoint on task flow elements !

Web vs. Desktop!•  A typical ADF application is a web

application that feels like a desktop application!

•  Developers understand the trade-offs!– Pages vs. Page Fragments!

•  Users want desktop and web at the same time!– Beware the ”Back” button!

Learning Business Logic!•  Basic Java required!•  Generate Java for BC, override!•  Add beans to your task flows!

– PageFlowScope or BackingBeanScope!•  Use JDeveloper wizards to help you

bind components to beans!

Page 6: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 6!

Java Optional!•  Even if you don’t generate Java, Business

Components still use a Java class!•  If you generate Java, you extend the base

class!… import oracle.jbo.server.EntityImpl … Public class TasksImpl extends EntityImpl { … public void remove() { super.remove(); } … }

Extending Base Classes!

oracle.jbo.server.EntityImpl

com.vesterli.demo.framework.EntityImpl

EmployeesImpl DepartmentsImpl

ADF BC Base Classes!•  EntityDefImpl !•  EntityCache !•  EntityImpl !•  ViewDefImpl !•  ViewObjectImpl !•  ViewRowImpl !•  ApplicationModuleDefImpl !•  ApplicationModuleImpl !

Learning ADF Faces!•  Always add components from Data

Control!•  Use Quick Start Layouts!•  Throw away your page and start over if

needed!•  Build templates after experimenting!

Learning ADF Architecture!

Workspace Hierarchy!

Modular Architecture!Enterprise Architecture!

Page 7: The Fast Track to Learning Oracle ADF - Nordic ACE Tour … · The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015! sten@vesterli.com, ! © Sten Vesterli 2015! 1!

The Fast Track to Learning Oracle ADF! Nordic ACE Director Tour 2015!

[email protected], www.vesterli.com!© Sten Vesterli 2015! 7!

Learning Logging and Debugging!

•  Use ADF Logger!– Reconfigurable at runtime!

•  Set breakpoints in taskflows and code, run in debug mode!

•  Deploy source JARs to debug into ADF libraries!

Learning ADF Security!•  Run the ADF Security wizard to add

security to your application!– Start with simple HTTP, then Form-based!

•  Assign privileges and test!•  Mapping application roles to user groups

needs Enterprise Manager!•  ADF Essentials: Use Apache Shiro instead!

Learning Build Automation!•  Create Ant tasks!

– Foundation!– All subsystems!– Master application!

•  Include subsystem build in master!

References!•  ADF Enterprise Methodology !

Group (google ”ADF EMG”)!•  ADF Mastery: !

www.adfmastery.com!(also newsletter)!

•  Twitter: @adfmastery and @stenvesterli!•  My blog: www.vesterli.com!•  E-mail: [email protected] !

Win a book!