Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers 10g (10.1.3.1.0) Part Number B25947-01 |
|
|
View PDF |
Once you create a basic page and add navigation capabilities, you may want to add more complex features to your pages, such as the ability to store information on a managed bean, or the ability to override declarative actions. ADF provides many features that allow you to add this complex functionality using very little actual code.
For example, the Delete button on the SRMain page was created by dragging the Delete
operation for the ServiceRequest
collection and dropping it as a command button. Then that Delete
operation was overridden, so that when the button is clicked, it not only deletes the service request from the cache, but also commits the transaction. Additionally, the SRMain page can be accessed from a number of pages in the SRDemo application. The userState
managed bean (UserSystemState.java
) holds the value of the originating page. The overridden Delete
operation also contains logic to access the value of the originating page so that the user navigates successfully off the SRMain page.
Read this chapter to understand:
How to create an use a managed bean to store parameter values or flags
How to create command components that will invoke custom methods on your application module
How to set parameter values
How to add logic to an operation or custom method bound to a command component