HP Integrity NonStop H-Series User Manual
Page 276

NOTE:
The resumeBean is registered as a managed bean in the
faces-config.xml
,
which is described in the following part of the
faces-config.xml
:
<managed-bean>
<managed-bean-name>resumeBean</managed-bean-name>
<managed-bean-class>coreservlets.ResumeBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
The navigation rules in the
faces-config.xml
are described under the
<navigation-rule>
tag:
<navigation-rule>
------
<navigation-case>
-------
</navigation-case>
-------
<navigation-rule>
To understand the navigation rule consider
customize.jsp
, which has the
<h:commandButton>
component included as:
<h:commandButton value="Show Preview"
action="#{resumeBean.showPreview}"/>
This commandButton uses the JSF action
“#{resumeBean.showPreview}”
to navigate
to
same-color.jsp
or
show-preview.jsp
depending on the result. The corresponding
rules are mentioned in the
faces-config.xml
file.
The SkinSelector project looks as follows:
shows the Project Explorer View.
276
Getting Started with MyFaces