TOC PREV NEXT INDEX

Step 7 - Capitalize on Facelets



The main focus of this step is to use Facelets to make our application more dynamic.

Note: This step is related to Facelets and will be of interest only if you intend to use Facelets.

In previous steps of the tutorial, TimeZoneBean.java and timezone.xhtml (or timezone.jspx) were codependent. Components in the UI would generate events from user interactions, requiring hard-coded constants in the bean to interpret the source and relevancy of the events. Changes to component IDs, or addition or removal of components would necessitate lock-step changes in both the bean and the web file. This step of the tutorial puts the bean in charge of generating content for the web file. With a few changes to one section of code in TimeZoneBean.java, any number of arbitrary time zones could be displayed with timezone.xhtml.



Copyright 2005-2009. ICEsoft Technologies, Inc.
TOC PREV NEXT INDEX