To work with dynamic data on your Web page, you need to define
a data source, such as a Domino® View.
Note: A page code file is required if you want to add a Domino View
or Domino Note
to a Faces JSP. If you have page code suppression turned on when adding a Domino View
or Domino Note,
you are prompted to allow a page code file to be generated.
To create a new Domino View in a Faces JSP file:
- Open the Data drawer on the palette and drag a Domino View
component to the Faces JSP file. The Domino View wizard opens.
Note: An alternate
way to create a Domino View
is to right-click within the Page Data view and select .
- Type a name for the Domino View, for example myBirthDate.
- If you want to use existing metadata, click Reuse existing
metadata definition, then add the input file location. You can
also click Browse to search for an input file.
- To automatically add the data controls to your page to work with
this view, select Add input/output controls to display the view
on the page, then click Next. You
can add data controls manually from the palette or by dragging this new Domino view
from the Page Data view onto your Faces JSP.
- Type the host name or IP address of the Domino server you want to access
- Click Next. The Configure
Data Controls panel displays.
- Choose whether to create controls for Displaying data
(read-only) or to create controls for Inputting data.
- Check Invoking a method, then choose a method
from the list or click Add to display the methods for
the class you chose.
- In the Fields to display table, check all
the fields that you want to display.
Depending on the data
type of a given field, you might be able to select a Control Type from a list.
If the property is a list or array, a new button displays under the Control
Type column. Click this button to display a wizard page on which you can select
the control types for the elements of the list or array.
- Use the up and down arrows on the right to change the order of
the fields.
- Click Options if you want to specify in
more detail how the fields are displayed.
- Click Next for more data control configuration
options.
- Select Create controls for displaying the results if
you want input results to display.
- Click Finish.