You can add components in the
to a Visual Web JSF page in the
Visual Designer. After you add a component to a page, you can see the component on the page in the
Visual Designer. The component will also be listed in the
.
In the open the category containing the component you want and select the type of component to add.
Drag the component from the Palette to the Visual Designer
and drop it.
For example, to add a button
to the page, open the Woodstock Basic category and drag the Button component to your page.
To add several components of the same kind to the page, drag the first component from the Palette, right-click it and choose Copy, and then right-click and choose Paste as many times as you like.
You must add components by dragging them from the Palette or by copying and pasting existing components in the Visual Designer. Do not copy and paste in the JSP code to add components. Doing so adds only the JSP portion of the component and does not add the Java code needed to support the component in the page bean.
Note: If you plan to scrip the component in Java code, you must manually add a binding attribute to the component. To do so, right-click the component and choose Add Binding Attribute.