previous | index | next

Page Navigation Using Buttons

In the previous example clicking the hyperlink initiates an HTTP request but no form data is submitted.

Clicking a button initiates an HTTP request, sends the data associated with any input components, and starts the JSF life cycle.

Button navigation requires JSF navigation rules in the faces-config.xml file.

Navigation rules can be created and placed in faces-config.xml using the IDE's Page Flow editor.

To get the Page Flow editor, right-click in any JSP design page and select Page Navigation to get a window that looks like this.

If you click the XML button in the Page Flow editor you can see the faces-config.xml source.


previous | index | next