HP Integrity NonStop J-Series User Manual

Page 277

Advertising
background image

</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/WEB-INF/results/show-preview.jsp</to-view-id>
</navigation-case>
</navigation-rule>

</faces-config>

NOTE:

The resumeBean is registered as a managed bean in the faces-config.xml file,

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:

Figure 89

shows the Project Explorer View.

Overview of SkinSelector 277

Advertising
This manual is related to the following products: