Java Reference
In-Depth Information
1. After opening your project in NetBeans IDE, expand the project node in the
Projects pane.
2. Expand the Web Pages and WEB-INF nodes of the project node.
3. Double-click faces-config.xml .
4. After faces-config.xml opens in the editor pane, right-click in the editor
pane.
5. From the Insert menu, choose Navigation Rule.
6. In the Add Navigation Rule dialog:
a. Enter or browse for the page that represents the starting view for this nav-
igation rule.
b. Click Add.
7. Right-click again in the editor pane.
8. From the Insert menu, choose Navigation Case.
9. In the Add Navigation Case dialog box:
a. From the From View menu, choose the page that represents the starting
view for the navigation rule (from Step 6 a).
b. (optional) In the From Action field, type the action method invoked when
the component that triggered navigation is activated.
c. (optional) In the From Outcome field, enter the logical outcome string that
the activated component references from its action attribute.
d. From the To View menu, choose or browse for the page that will be opened
if this navigation case is selected by the navigation system.
e. Click Add.
Search WWH ::




Custom Search