Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Agenda
Worlss most comprehensive Hello World Demo
UI Component Tree
RichPanelHeader
RichPanelGroupLayout
RichPanelFormLayout
RichInputText
RichInputDate
6. Render
Response
richInputText.setSubmittedValue(Steven)
richInputDate.setSubmittedValue(04-12-2012)
Request Values
3. Process Validations
4. Update Model
3. Process Validations
4. Update Model
5. Invoke Application
Call HelloBean.sayHello
richInputText.setSubmittedValue(Steven)
richInputDate.setSubmittedValue(04-12-2012)
Call HelloBean.reset
Using af:resetActionListener
Easiest option, no Java method needed
Automatically added when dragging and dropping a
Rollback operation from Data Control Palette
Lesson 3: af:resetActionListener does NOT reset child
regions, use ResetUtils.reset() instead.
Using ResetUtils.reset(UIComponent
startComponent)
Reset method takes one
parameter: the start UI
Component to reset
Agenda
Worlss most comprehensive Hello World Demo
Not reallyD..
YES, this works, and the reset button still works too!
But wait8. it works too well8
Method should not execute when name empty, or less than 4 chars
Agenda
Worlss most comprehensive Hello World Demo
Agenda
Worlss most comprehensive Hello World Demo
Why??
Calls HelloBean.setGreeting(null)
Overrides the value set by valueChangeListener
method D.
Implementing Reset/Cancel
Functionality using af:target tag!
Agenda
A bit more on the ADF optimized lifecycle
Agenda
Worlss most comprehensive Hello World Demo
More Info
Understanding the JSF and ADF Optimized Lifeycle
Slides and sample apps downloadable
http://www.ateam-oracle.com/?p=3719
Final Recommendation
Write the lessons down, print them, put them on the
wall, learn them by heart, and rehearse them every
week, it will save you tons of frustration!