Databases Reference
In-Depth Information
This is a reference to the acion binding that is created in the indexPageDef.xml file.
To verify this, go to the Bindings view and check whether the Commit acion is added to
the page deiniion ile just below the EmpVO1 instance in the Bindings secion as shown
in the following screenshot:
In the page deiniion ile, we can see that the Commit acion is mapped to the
commitTransaction operaion of EmpDirectoryModuleDataControl as shown
in the following code:
<action id="Commit" RequiresUpdateModel="true"
Action="commitTransaction"
DataControl="EmpDirectoryModuleDataControl"/>
Have a go hero - inserting the records
When you run the index.jspx page with the previous changes, you will see a buton that
is disabled. The buton is disabled because we have set the disabled property to theEL
expression, that is, #{!bindings.Commit.enabled} . This means the Commit buton
will be enabled only if there are any modiied records available for the enity object.
Now your task is to add the CreateInsert operaion from the EmpVO1 instance so that
we have an opion to modify the record using the CreateInsert method available for
the view object instance.
Ater adding the buton, the page will allow you to create a new record for the EMP table,
and we can save the changes to the database.
 
Search WWH ::




Custom Search