On Mon, Apr 14, 2008 at 1:05 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote:

> Hmm, it should try to use bean methods before trying the field directly.
> you could try changing the wicket id of your formcomponent to the full
> method name, e.g. setLastname() if your property is lastname.
> If that does not work, it might indicate a problem with your getters
> and setters.
>

it could also be that he only provided a getter or a setter and not both.
in this case, the field is accessed directly.

  Gerolf


>
> An alternative way to intercept changes (only those coming through the
> compoundmodel) is to override
> CompoundPropertyModel#wrapOnInheritance(Component) and return a model
> similar to AttachedCompoundPropertyModel where you overwrite the
> setObject method to listen for changes. Unfortunately you cannot
> extend it because it is private so you have to copy paste it.
>
> Maurice
>
> On Mon, Apr 14, 2008 at 5:37 AM, Karen Schaper
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >  I am using a CompoundPropertyModel.
> >
> >  CompoundPropertyModel     personModel  = new CompoundPropertyModel(
> >  person );
> >  Form                            _editForm        = new EditPersonForm(
> "editForm",
> >  personModel ) ;
> >
> >  Upon submitting the form, I thought that the setter methods would be
> called
> >  on the person object. How is the person object updated?  The code in
> the
> >  setter methods of person are not called.
> >
> >  Am I missing something?
> >
> >  I want to track changes in my object and I wanted to check for the
> change in
> >  the setter methods of the person object.
> >
> >  Thanks for any help.  It is greatly appreciated!
> >
> >  Karen
> >
> >
> >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to