Adding Domino Notes® and Views to a Faces JSP file

To work with data from a Domino® source, you need to connect to a Domino server and create a service data object that you can add to a Faces JSP. These service data objects in Domino are either views and notes.
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 Note or Domino View in a Faces JSP file:
  1. Open the Data drawer on the palette click on either Domino View or Domino Note and drag it to the Faces JSP file. The Domino View or Domino Note wizard opens.
    Note: An alternate way to create a Domino Note or Domino View is to right-click within the Page Data view and select New > Domino Note or New > Domino View.
  2. In the Name field, type a name for the Domino Note or Domino View, for example myBirthDate.
  3. (Optional) If you are reusing information from a previously created object, select Reuse existing metadata definition, then enter the input file location or click Browse to find the file. To reuse information, the existing metadata file must be imported into the workspace before you can select it using the wizard.
  4. (Optional) If you want to automatically add data controls, select Add input/output controls to display the view on the page. For Domino notes, you have the option of creating controls for displaying or updating an existing note or creating a new note.
  5. Click Next. The Connection page displays.
  6. Type the host name or IP address of the Domino server you want to access
  7. In the Server field, type the host name or IP address. Do not enter the Domino server name.
  8. In the Development section, type your Domino user name and password. The password is the HTTP password as defined in the your person document in the Domino Directory.
  9. (Optional) In the Runtime section, type your runtime Domino user name and password if it is different from development.
  10. Click Connect to server. Your connection status displays, for example, currently connected to DomServer1 as MyUserName.
  11. Click Next. The Domino Database page displays.
  12. Select a database, then click Next.
    Note: For views, the View page displays with a list of all the defined views and their associated columns from the Domino database. For notes, the Form page displays with a list of defined forms and their associated fields.
  13. Complete one of the following steps:
    1. For Domino views, select a view and any of its columns, then click Finish. Optionally, you can click Next to make changes to the way the columns display.
    2. For Domino notes, select a form and any of its fields, then click Next. The Filter page displays where you enter a condition for filtering query results, then click Finish.

From the Page Data view, you can see the Domino views and notes that were added to the page, for example, View1 (Service Data Object) and Note1 (Service Data Object). The note fields can contain multiple values which are marked as multi-value.

Available actions for Domino data access

When targeting a single Domino document or note, you can: When targeting Domino views, you can only retrieve information.

Editing your Domino SDO

To make changes to the metadata in the Domino SDO object you just created, follow these steps:

Limitations for accessing Domino

Related concepts
Working with data in Faces applications
Related tasks
Creating a connection to a relational database
Adding a relational record list to a Faces JSP file
Adding relational record data to a Faces JSP page
Adding a Java Bean to a Faces JSP file
Passing parameters between JSP files

Feedback