Re: How to detect model changes in form submission

2008-06-14 Thread Martin Grigorov
On Sat, 2008-06-14 at 09:52 -0400, Michael Allan wrote:
> > Is there an easy way to detect what model objects have changed as a result 
> > of
> > a form submission? I see that wicket compares the old values to the
> > submitted values but where can I hook into tthat change detection? I have a
> > data grid with many rows and only a few could change.
> 
> Override IModel.setObject(object) in a model subclass.  Have it set a
> boolean flag isChanged.  Remember to clear the flag, after you read
> it, and act on it.
> 
Or see Component.modelChanged()


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to detect model changes in form submission

2008-06-14 Thread Michael Allan
> Is there an easy way to detect what model objects have changed as a result of
> a form submission? I see that wicket compares the old values to the
> submitted values but where can I hook into tthat change detection? I have a
> data grid with many rows and only a few could change.

Override IModel.setObject(object) in a model subclass.  Have it set a
boolean flag isChanged.  Remember to clear the flag, after you read
it, and act on it.

-- 
Michael Allan

http://zelea.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to detect model changes in form submission

2008-06-14 Thread galbelli

Is there an easy way to detect what model objects have changed as a result of
a form submission? I see that wicket compares the old values to the
submitted values but where can I hook into tthat change detection? I have a
data grid with many rows and only a few could change.
-- 
View this message in context: 
http://www.nabble.com/How-to-detect-model-changes-in-form-submission-tp17839138p17839138.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]