Adding a Domino View to a Faces JSP file

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:
  1. 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 New > Domino View.
  2. Type a name for the Domino View, for example myBirthDate.
  3. 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.
  4. 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.
  5. Type the host name or IP address of the Domino server you want to access
  6. Click Next. The Configure Data Controls panel displays.
  7. Choose whether to create controls for Displaying data (read-only) or to create controls for Inputting data.
  8. Check Invoking a method, then choose a method from the list or click Add to display the methods for the class you chose.
  9. 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.

  10. Use the up and down arrows on the right to change the order of the fields.
  11. Click Options if you want to specify in more detail how the fields are displayed.
  12. Click Next for more data control configuration options.
  13. Select Create controls for displaying the results if you want input results to display.
  14. Click Finish.

Feedback