![]() |
![]() |
Within a Web application, a page flow links together multiple Web pages in a particular sequence, thus determining the user's path through those pages and the associated data. A page flow consists of a Java class with specially designed annotations, methods, and forms that control the behavior of Web application components; it is based on the Apache Struts framework.
You can include one or more JSP files in the page flow by adding them to the page flow folder. The JSP files can use special tags, which are understood by the page flow runtime, to raise actions. The actions in the JSP correspond to action methods that are defined in the page flow. Actions can be used to perform site navigation, pass data, or invoke back-end business logic via controls. The business logic in the page flow class is separate from the presentation code defined in the JSP files.
WebLogic Workshop makes it easy to create a page flow: click the target folder and choose File —> New —> Page Flow. The Page Flow Wizard steps you through the process of creating an initial page flow and opens it in the Page Flow Designer.
The Page Flow Designer is a graphic tool that enables you to design page flows such as the Employee page flow shown in the following figure.
The following table describes the page flow design tools shown in the previous figure.
Create, view, and edit page flow files in your portal application projects. The names of page flow files end in .jpf. Each page flow consists of a folder that contains a single controller file, any JSP files that are referenced, and any other application files required by the page flow. JSP files to be included in a page flow must reside within the page flow folder. |
||
Design your page flow in this area. Switch between the following views, as required:
Changes made in one view are automatically reflected in the other. |
||
Create a graph of icons in your page flow by dragging components from the Palette window and dropping them onto the Flow View canvas. Icon types include:
|
||
Define instances of Java controls and form beans to use in the page flow. Java controls make it easy to access enterprise resources, such as Enterprise Java Beans (EJBs) and databases, from within your application. A control handles the work of connecting to the enterprise resource for you, so that you can focus on the business logic of your application. Form beans define variables that are used to store form data. If an action defines a form bean, a small box appears in the lower right-hand corner of the action icon. For example, the previous figure shows that form beans are defined for the UsrInfo and logout methods. |
||
Edit a form bean defined for the selected action. If no form beans are defined for the selected action, the window is empty. |
||
Set properties for the component that is currently selected in the page flow. You can select a page flow icon by clicking on it in the Design View canvas or by selecting its name in the Document Structure window (described below). |
||
View a summary of the Java entities and page flow icons that comprise the page flow (see Figure: Document Structure Window for a Page Flow). The summary includes the Java classes, methods and signatures, variables, and inner classes defined for the page flow. You can select a Java entity or page flow icon in the Document Structure window by clicking on it. When you select a page flow icon, it is selected in the Flow or Action View canvas and you can edit its properties in the Property Editor window. You can double-click on a Java entity or page flow icon to jump to its code location in Source View. |
The following figure shows the Action View for the Employee page flow.
Page Flow Designer—Action View
The Action View displays all actions and Java controls defined for the page flow, and the pages and page flows referenced.
The following figure shows the Document Structure window for a page flow.
Document Structure Window for a Page Flow
To learn more about designing page flows:
![]() |
![]() |