> The ListView implementation had
> two Label objects that contained two PropertyModels. I didn't know that
> PropertyModel stores the object, i thought that it only  only stores the
> value of the field. This object is very heavy, and the pages was storing two
> heavy objects for each ListItem instance.

the way to do this is to chain propertymodel with another model, eg

imodel m=new loadabledetachablemodel() {...}
add(new label("a", new propertymodel(m, "a")));
add(new label("b", new propertymodel(m, "b")));

-igor



> Thanks for your help!
>
> --
> View this message in context: 
> http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space-tf4950580.html#a14177708
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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