« ADF Faces RC: How-to cancel an edit form, undoing the edits | Main | ADF Security Part V recorded and uploaded to ADF Code Corner »
How-to cancel an edit form, undoing the edits with ADFm Save points
By frank.nimphius | January 9, 2009
This how-to document describes one of the two options available to cancel an edit form in ADF Faces RC without a required field message being raised by the client validator. Canceling an edit form with ADF requires more than just setting the immediate property set to true on the command button. It requires some housekeeping for the changes performed on the ADF binding layer.
Two strategies exist to implement a cancel button for an ADF Faces / ADF edit form that uses client-side and server side validation: a) restoring state with a save point set in ADFm and b) a client Java method exposed on the ADF Business Component business service. Both strategies are similar in that they use the immediate property on a ADF Faces command button to cancel the edit, but are different in their implementation of the data clean-up. n this article, the focus is set on model save points that can be set programmatically or implicit in bounded taskflows.
Topics: ADF, ADF Faces RC, Taskflow | No Comments »
Comments are closed.
