Java Reference
In-Depth Information
Figure 12-28.
The Record Properties pane will be displayed in the Add Relational Record window.
4.
Make sure TNT_Employee_Con is specified as the connection name.
5.
If necessary expand the TNTDB item, click on the Employee table, and then the Next button.
Notice that you do not have to define a connection. RAD remembers the connection information defined earlier
and allows the connection to be used in any class within the EAR.
Yay, RAD!
6.
On the Add Relation Record pane, click on the Modify primary key task, specify empnum as
the key (just as you did earlier with the Relational Record List) and click the Close button.
7.
Click the Finish button.
You have just created a Facelet that can insert a row into a database table. The InsertEmp Facelet should look like
Figure 12-29 . It's not very pretty but the format of the text can be modified, the table and input fields can be repositioned
and resized, and so on. We are going to concentrate on the SDO data functions, not the JSF formatting options.
Search WWH ::




Custom Search