JSF LifeCycle

Practice

  • Implement a counter example where a page will show the counter on each access, and verify the behavior of each scope:

    • Request Scope: The counter should always be 0 or 1

    • View Scope: The counter should always incremented by one the refresh of the current view, and should reset to zero if the user switched to to other view.

    • Session Scope: The counter should be increased by one on every refresh in same browser

    • Application Scope: The counter should always be incremented by one either in same view or same browser.

  • Push your work to GitLab