The following table shows how to use databases with Visual Web JSF development.

Add database to the IDE

|
- To add a database to the IDE:
- In the
, right-click the Databases node and choose
New Connection.
- Fill in the values for the database and click OK.
- To add another type of datbase to the IDE
- Add a JDBC driver to the IDE
- In the
Services window, right-click the Databases node and choose New Connection.
- Fill in the values for the database and click OK.
|
|

Connect database table to page

|
- In the Services window, expand the Databases node.
- Expand the database-name node and the Tables Node.
- Drag the database table to the Visual Designer.
|
|

Define rowset content

|
- In the , double-click
the table-nameRowSet item.
- In the Visual SQL Editor, if the SQL query is not correct, edit it.
|
|

Bind data to component
|
In the Visual Designer, add the component to the page, then:
|
|

Set event handling

|
- Specify event
handling for retrieving, updating, or deleting the data by double-clicking
the component to open the Java Editor.
|