After you create Web Application project, you can add Web pages. Use a managed bean to provide data and actions for the Web page. The data comes from managed bean properties and the actions come from managed bean methods.
Use a service managed bean to invoke a SOAP service in the Web application.
Use a Java managed bean to bind bean properties and business logic to the user interface components of Web page.
Use an EJB managed bean to invoke a session EJB in a Web page.
Use a DataWindow managed bean to use Sybase DataWindow objects in a Web page.
To create a Web page using a managed bean:
In the Data Bindings view, select the managed bean that you want to use and drag and drop it onto the Web page.
The Create JSF components wizard opens.
To map the managed bean attributes to JSF components:
Unselect attributes that you do not want to map.
Edit a JSF component by clicking in its cell, clicking the down arrow that appears, and selecting a new JSF component.
Edit the text in the Label column to the appropriate name for each member.
To change an attribute mapping, select the attribute and click Move up or Move down.
Do one of the following:
Click Next to configure a container to hold the new components.
Click Finish to accept the defaults and skip the rest of this procedure.
On the Configure a container to hold the generated components page, do one of the following:
To use a table-type container:
Select Use table-typed container to hold components.
Select either a JSF panelGrid or an HTML table.
Type the number of component pairs that you want to appear in each row in the text box.
To not use a container, select Do not use container.
Click Next.
The generated code from your selections displays.
Click Finish.
The Web page with your selections is generated.
Select File|Save from the main menu bar to save the Web page.
(Optional) Click the Preview tab to see what the Web page looks like in a Web browser.
Creating a Web Application Project
Adding a Data-Driven Component to a Web Application
Adding a Service-Driven Component to a Web Application
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com