Binding a JavaServer Faces check box component to an EGL page handler
A JavaServer Faces check box component is unique in that the data area to which it is bound must have the item property boolean set to yes. Examples of boolean data area declarations are as follows:
DataItem CharacterBooleanItem char(1) { value = "N", boolean = yes } endDataItem NumericBooleanItem smallInt { value = 0, boolean = yes } endTo bind a JavaServer Faces check box component to an existing EGL page-handler data area, do as follows:
- Open a Faces JSP file in the Page Designer. If you do not have a JSP file open, double-click on the JSP file in the Project Explorer. The JSP opens in the Page Designer. Click the Design tab to access the Design view.
- From the Window menu, select Show View > Other >Basic > Palette.
- In the Palette view, click the Faces Components drawer to display the Faces Components object types.
- Drag a check box component from the palette to the JSP. The component object is placed on the JSP.
- To bind the component to an existing page-handler data area, do one of the following:
- Drag the data area from the Page Data view to the component object on the JSP.
- Select the component object on the JSP, then right-click the data area in the Page Data view and select Bind to 'component name'.
- Select the component object on the JSP. Click the button next to the Value field on the Basics tab of the Attributes view, then select a data area from the Page Data Object list and click OK.
Related concepts
PageHandler part
Related tasks
Creating an EGL pageHandler part
Related reference
Page Designer support for EGL
PageHandler part in EGL source format