Java Reference
In-Depth Information
8.
Save the file.
9.
Save the file again, this time as EmpApps.
10.
In EmpApps, change the text in the last three cells to Display All Employees, Insert An
Employee, and Update An Employee.
11.
Save EmpApps.
12.
In TNTApps, select the text Employee Application.
In the Command Bar, click on Insert then Insert Link... to display the Insert Link
window.
13.
14.
At the Insert Link window, click the Browse button and select File . . . from the menu.
15.
In the File Selection window, expand WebContent, select EmpApps.html, and click OK.
The Insert Link window will contain EmpApps.html as the URL
16.
Click the OK button and save the file.
The Employee Application text should be underlined and appear in a different color then the other text.
17.
Switch to the Preview view and click on Employee Application link.
The EmpApps page should be displayed.
18.
In the Design view of EmpApps, highlight the text Display All Employees and click on
Insert then Insert Link... .
19.
At the Insert Link window, click the Browse button and select File . . . from the menu.
20.
In the File Selection window, expand the WebContent/c12 folder, click on AllEmps.xhtml,
and then click the OK button.
The URL will be displayed as c12/AllEmps.faces. Even though the file name for the Facelet is AllEmps.xhtml, the
resource is specified as AllEmps.faces.
21.
Click the OK button.
To access a Facelet from a Web Page, we must run the Web page on the server. This is because the server must
create the bean and execute the methods indicated in the Facelet.
22.
Run TNTApps on the server, and then select Employee Application.
23.
On EmpApps, select Display All Employees.
The AllEmps page will be displayed with the three employee records.
Tutorial: Inserting Data Using a Relational Record (RR)
Let's insert some data
1.
Close all RAD sessions and, in WebContent/c12, create a new Facelet called InsertEmp.
2.
In the Design view, click on SDO Relational Record (not SDO Relational Record List) in the
Palette's Data and Services drawer and then click on the Facelet.
3.
At the Add Relational Record window, specify empRR as the name, click on the Creating a
new record radio button, and click the Next button (see Figure 12-28 ).
 
Search WWH ::




Custom Search