Java Reference
In-Depth Information
Notice that the Reference String field (toward the bottom of the window) now contains an EL statement that
indicates the sessionScope variable.
12.
Click the OK button and then click the OK button to save the changes to the condition.
13.
Click the Close button to save the changes to the filter
14.
On the Add Relation Record pane, click the Next button.
15.
On the Configure Data Controls pane, click the checkbox next to empnum to unselect the field.
We already have the employee number displayed on the page in an outputText field, so we are removing this field
from the Relational Record (this also prevents the user from changing an employee's employee number.
16.
Click the Finish button.
UpdateEmp.xhtml should look like Figure 12-41 .
Figure 12-41.
Just like the insert page, RAD has created inputText components for each selected field in the database table and
bound the fields to the RR data components. RAD has also created two buttons that will invoke the update and delete
functions in the pagecode class (i.e., UpdateEmp.java). If you look at the UpdateEmp.xhtml source code, you'll see
that the EL statement for each button's action parameter invokes a particular method in the bean/pagecode class
(pc_UpdateEmp). For example, the Submit button invokes the doEmpRRUpdateUpdateAction method. Where did that
method come from? RAD automatically generated these methods when the Updating option was selected in step 3.
Although RAD has done a wonderful job, the default text for the Submit button should be changed. Submit does
not really describe what clicking the button will do, so we will change the text to Update.
Search WWH ::




Custom Search