Note that I also introduced a call back method that is called just before model changes will be applied. This gives users the options of recording pre-change state, so that it they can roll it back later (e.g. when form level validation failed).

   /**
* Template method to allow clients to do any processing (like recording the
    * current model so that, in case onSubmit does further validation, the
* model can be rolled back) before the actual updating of form component
    * models is done.
    */
   protected void beforeUpdateFormComponentModels()
   {
   }

Eelco

David Liebeherr wrote:

Hi!

I have a Form wich has two Submit Buttons ("Update" and "Cancel").
The form uses a CompundPropertyModel to get the changes of the form automaticly represented in the Model. But when i click the Cancel Button i have to discard the changes to the Model Object. How can i do this?

I was searching for something like CompoundPropertyModel.discardChanges(), but i have found nothing.

Thanx,
Dave




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to