Yes, perhaps I wasn't clear enough.  But, Martijn is correct.  A
DataView (which uses a DataProvider) might be a better choice in your
situation (unless you have to load the entity to display other parts
of your page anyway).  Are you always showing all members of the
nested collection?

On Fri, Sep 26, 2008 at 12:25 PM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> James suggested 'model chaining', where you nest the LDM inside
> property models. In your case I'd suggest using a DataView instead, as
> it is easier to work with when using LDM's and data coming from
> databases.
>
> If you still want to use ListView, you'll have to override
> newListItemModel (iirc) and let that one return a LDM for the item in
> the list.
>
> Martijn
>
> On Fri, Sep 26, 2008 at 6:11 PM, Neil McT <[EMAIL PROTECTED]> wrote:
>>
>> Yeah, I originally had that - a LDM as the main model and the ListView model
>> based on that. I've also tried a couple of variations of this but I still
>> get the Serialization errors. I think maybe I'm not following you exactly.
>>
>> As far as I can see the ListView needs a collection as a model (the
>> collection of Contacts) and, no matter how I configure this model, it will
>> still point to non-serializable objects (either the 'owner' property of the
>> AbstractPersistentCollection or perhaps the Contacts themselves). So does
>> the collection itself need to be Loadable / Detachable?
>>
>> Thanks.
>>
>>
>>
>>
>> jwcarman wrote:
>>>
>>> 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?).
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Loadable-detachable-collections--tp19685949p19691650.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]
>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> ---------------------------------------------------------------------
> 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