Navigation rules are defined in your faces
configuration file. To illustrate how to define navigation rules for your application, consider the following example:
You have a web application that consists of three pages: logon.jsp, that allows users to log on to BusinessObjects Enterprise; contents.jsp, that lists a set of reports; and view.jsp, that allows users to view a single report. The navigation flow of the web application is illustrated by the following diagram:
For this sample application, you define a navigation rule for two cases:
To implement this functionality:
faces-c onfig.xml
, based on the returned strings.
An action method can be added to a backing bean of the logon.jsp page (see How do I use backing beans?). In addition, a reference to that method can then be added to the action
attribute of the Logon
component tag, which supplies the logon form, in the JSP page. For now, assume that the method returns the string "logon_success" when the logon attempt succeeds and "logon_failure" when the logon attempt fails. The navigation rule must be defined now.
faces-c onfig.xml
for editing.<navigation
<from
<navigation
<from
<to
<from
<to
</navigation
</navigation
This navigation rule states the following:
The <from
To implement this functionality:
faces-c onfig.xml
, based on the returned strings.
An action method can be added to a backing bean of the contents.jsp page (see How do I use backing beans?). In addition, a reference to that method can be added to the action
attribute of the ItemsGrid
component tag, which lists the reports, in the JSP page. For now, assume that the method returns the string "view_report".
faces-c onfig.xml
for editing.<navigation
<from
<navigation
<from
<to
</navigation
</navigation
This navigation rule states the following:
The <from
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |