javaserver faces sample app life cycle
Download
Skip this Video
Download Presentation
JavaServer Faces: Sample App + Life Cycle

Loading in 2 Seconds...

play fullscreen
1 / 11

JavaServer Faces: Sample App + Life Cycle - PowerPoint PPT Presentation


  • 69 Views
  • Uploaded on

JavaServer Faces: Sample App + Life Cycle. Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator). Sample JSF Application. guessNumber application that comes with JSF 1.0 as part of J2EE 1.4 SDK

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' JavaServer Faces: Sample App + Life Cycle' - nora-tyler


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
javaserver faces sample app life cycle

JavaServer Faces: Sample App + Life Cycle

Compiled from

Sun TechDays workshops

(JSF Basics, Web-Tier Codecamp:

JavaServer Faces,

Java Studio Creator)

sample jsf application
Sample JSF Application
  • guessNumber application that comes with JSF 1.0 as part of J2EE 1.4 SDK
  • Guess a number between 0 and 10, inclusive
    • The response page tells you if you guessed correctly
  • • Input validation
lifecycle of jsf page
Lifecycle of JSF Page
  • A JSF page is represented by a tree of UI components, called a view
  • When a client makes a request for the page, the lifecycle starts
  • During the lifecycle, JSF implementation must build the view while considering state saved from the previous postback
  • When the client performs a postback of the page, JSF implementation must perform lifecycle steps
    • validation
    • conversion
request processing lifecycle phases
Request Processing LifecyclePhases
  • 1. Reconstitute component tree phase
  • 2. Apply request values phase
  • 3. Process validations phase
  • 4. Update model values phase
  • 5. Invoke application phase
  • 6. Render response phase
request processing lifecycle1
Request Processing Lifecycle

Source: http://www.ibm.com/developerworks/library/j-jsf2/

request processing
Request Processing
  • Life-cycle handles two types of requests
    • Initial request & Postback
  • Initial request
    • A user requests the page for the first time
    • Lifecycle only executes the Restore View and Render Response phases
  • Postback
    • A user submits the form contained on a page that was previously loaded into the browser as a result of executing an initial request
    • Lifecycle executes all phases
ad