...
>
> -Original Message-
> From: Pedro Santos [mailto:pedros...@gmail.com]
> Sent: Thursday, January 27, 2011 8:07 AM
> To: users@wicket.apache.org
> Subject: Re: Compound Property Model, sharing for children
>
> No because the MyTextField will not be able to init
s [mailto:pedros...@gmail.com]
Sent: Thursday, January 27, 2011 8:07 AM
To: users@wicket.apache.org
Subject: Re: Compound Property Model, sharing for children
No because the MyTextField will not be able to init its model based on
the parent CompoundPropertyModel since it don't know h
No because the MyTextField will not be able to init its model based on the
parent CompoundPropertyModel since it don't know him yet. Only after exit
the form.add call MyTextField.getModel will work as expected.
If MyTextField invokes getModel inside the onInitialize it will work fine,
since at this
How does the compound property model work in these instances:
If I do (pseudo code):
Form form = new Form ( new CompoundPropertyModel(someObject))
form.add (new MyTextField("someFieldFromObject");
...
public class MyTextField {
public MyTextField() {
super(id);
getModel()