Rational Developer for System z, Version 7.6

JSF Web page generation

You can generate a JavaServer Faces (JSF) Web page from a BMS map set file, for use in a J2EE Web environment. The generated Web page resembles the original BMS map set in terms of the layout and appearance of fields.
Restriction: You can create a JSF Web page only in an existing dynamic Web project. To create a new project, click File > New > Project > Web > Dynamic Web Project and configure the project as needed.
Using either of the following methods to invoke the Generate Web Pages wizard.
In the Generate Web Pages wizard, configure the JSF options:
  1. Select the maps that you want, and click Next.
  2. If you have enabled bidirectional support, you can now configure additional settings. See Bidirectional Web page generation options for details.
    Important: If you select multiple bidirectional attributes while generating a JSF page, script errors might prevent the JSF page from being executed. To clear such script errors, you must manually edit the JSF page.

    If you are not working with bidirectional maps, proceed to the next step.

  3. For the Folder value, specify the destination dynamic Web project. The location must be in the Web Content directory within the project.
  4. To set the Package value, double-click the name of the package that you want for the Java™ Beans.
  5. Click Finish.
For each map, the Generate Web Pages wizard generates the following components in the Web project directory:
JSF tags are used in the generated Web page. The map set fields are marked in the following manner:
The following display attributes are represented on the generated Web page:

The Faces configuration file is updated (or created, if necessary) for each generated JSF page. This configuration file is responsible for managing the mappings between JSF pages and their associated Java beans, and for controlling the flow between pages. Because flow cannot be determined at this point in generation, no navigation rules will be generated.

For more information about JavaServer Faces, see the Rational® Developer documentation.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)