Adding a Control to a Web Page

Use the Palette to drag and drop controls onto the Web page editor. You can also drag an image file, resource bundle file, and taglib file from the Enterprise Explorer or Windows Explorer and drop it onto the Web Page editor to create new HTML or JSF controls.

Prerequisites 

If the resource file is not in your project, you must import it into the project first.

The following procedure is specific to adding a control from the Palette. Adding a resource from Enterprise Explorer or Windows Explorer is similar.

  1. In the WorkSpace Navigator, double-click the Web page to which you want to add controls. The Web Page editor opens.
  2. Click Palette on the Fast View shortcut bar. The Palette opens in the perspective. The Palette contains the following: Select, Marquee, HTML, JSP, JSF Core, JSF HTML, and Sybase DataWindow (if DataWindow component support is enabled).
  3. Open the section of the Palette that contains the control you want to add.
  4. Drag and drop the control onto the Web Page editor. The Web Page editor validates the location of the control. For example, all JSF controls must be within JSF view or subview tags. The control graphically appears in the design pane of the editor, the source code for the control appears in the Source pane of the editor, and the attributes of the control display in the Properties view.
    Note: If you added a DataWindow control and it is a free-form DataWindow, set its height and width properties to ensure it displays properly, even if there are no rows.
  5. Repeat steps 3 and 4 to add more controls.
  6. Click the Preview tab.
Related tasks
Designing a Web Page
Creating a Web Page
Binding a Resource Bundle to a Web Page Component
Defining Control Properties
Changing the Appearance of a Control
Adding an Object to a Web Page
Editing Object Properties
Binding a Managed Bean to a Control
Linking Web Pages

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.