Creating a component (JavaScript)

Creating a component requires work in both the component and XPage interfaces.

Before you begin

You should know the names and approximate layouts of the XPages that comprise the application. If the components are for Mashups, decide the mode of each page, View, Edit, or Help, and associate up to three XPages with each component, one for each mode. Otherwise the mode is irrelevant. If the components are for composite applications, associate one XPage with each component as View mode. The same XPage can be used for more than one component.

About this task

For each component, do the following in Domino® Designer:

Procedure

  1. In the Applications Navigator, expand Composite Applications.
  2. Right-click Component > New Component, fill in the dialog, and click OK.
  3. Click the Events tab and do the following as appropriate:
    1. For View mode, select the name of the XPage from the dropdown list.
    2. For Edit mode (Mashups only), if you are not generating the XPage from parameters, deselect the Generate box and select the name of the XPage from the dropdown list.
    3. For Help mode (Mashups only), select the name of the XPage from the dropdown list.
  4. To generate an XPage from parameters (optional, Edit mode only), do the following:
    1. Click the Parameters tab.
    2. Add parameters using the Add button.
    3. Click Generate Edit XPage Now.

What to do next

You can now set up the component to publish or receive an event and to pass parameters.