I usually use a LDM for the main object (which has the collection property) and have the model for the collection based upon that (perhaps a PropertyModel?).
On Fri, Sep 26, 2008 at 6:34 AM, Neil McT <[EMAIL PROTECTED]> wrote: > > I'm using LoadableDetachableModels to minimise the serialized session state > of my app. However, there is one place where I am still seeing > WicketNotSerializableException and that is where I use a hibernate > collection as a components model. > > I have a SystemUser class which contains a List of Contact objects - both > are hibernate entities. This collection of Contact objects form the model > for a ListView but throws the WicketNotSerializableException as follows... > > [snip] > private java.lang.Object > org.hibernate.collection.AbstractPersistentCollection.owner > [class=com.myapp.domain.SystemUser] <----- field that is not serializable > > > So it seems that the underlying hibernate collection has a field 'owner' (in > this case the SystemUser) which wicket is trying to serialize. I'm not sure > of the best way to make this owner object (and the collection objects > themselves, probably) LoadableDetachableObjects. > > Any ideas? > > Thanks - Neil. > -- > View this message in context: > http://www.nabble.com/Loadable-detachable-collections--tp19685949p19685949.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
