On 9/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

Person person = new Person();

CompoundPropertyModel personModel = new CompoundPropertyModel(person);
Component parent = new Component("personPanel", personModel);
Component child = new Component("addressPanel", new CompoundPropertyModel(new PropertyModel("address", personModel)));
\

Just for my understanding: The above code example will also not work in wicket 1.2.2 right? If I look in AbstractPropertyModel, then the object passed in to PropertyModel is saved as a non-transient variable so a copy is created with onModelChanging().

To Johan:
As for a custom serialization option, isn't it an option to provide a custom serialization for model objects by providing the following methods in a model implementation?

private void writeObject(java.io.ObjectOutputStream out)
     throws IOException
 private void readObject(java.io.ObjectInputStream in)
     throws IOException, ClassNotFoundException;

Or are you already doing that?



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to