Adding UI controls to custom controls

Add user interface (UI) controls to the custom control. Then, you can select each UI control individually and set properties for it just as you would for a UI control inside an XPage.

About this task

To add UI controls to a custom control, do the following steps:


  1. Open the custom control as an independent design element in the XPages editor (meaning the custom control is not in an XPage).
  2. Place your cursor at the location where you want to insert a UI control.
  3. Click Create > Other, Create > Core Control, Create > Container Control, or Create > Custom Control and select a UI control.
  4. Repeat the previous step until you have finished inserting UI controls into the custom control.
  5. Click File > Save to save your changes.


You can also add UI controls to custom controls by dragging them from the Controls palette on to the editor, on either the Source tab or the Design tab.