Why not read the "phones" into a different list that you "edit" and
when you're done, you update the entity.

On Fri, Dec 3, 2010 at 2:20 AM, Nivedan Nadaraj <[email protected]> wrote:
> Vineet
> I have not tried that. In this scenario, it will overwrite the phone's the
> user may have added to a list on the UI and is yet to be persisted. If you
> know what I mean.
>
> 1, Initial fetch of Subject along with his phones ( 5 items)
> 2. User adds a new phone number to the subject ( 5 + 1 (yet to be persisted)
> 3. If user navigates and the load() gets a list of Phones for the subject it
> will overwrite the ones user has added.
>
> Not sure if that made sense, thanks for your thoughts
> Will ping back
> Niv
>
>
> On Thu, Dec 2, 2010 at 5:43 PM, vineet semwal 
> <[email protected]>wrote:
>
>> do you see the exception when you try this?
>>         �...@override
>>           protected Object load() {
>>              // return containerForm.getModelObject().getPhoneList();
>> return service.getRequiredObject(*).getPhoneList(); //or any thing like it
>> ..
>>
>>           }
>>
>> On Thu, Dec 2, 2010 at 12:12 PM, Nivedan Nadaraj <[email protected]
>> >wrote:
>>
>> > Hi James
>> >
>> > Thanks for the time. I use the CPM for the whole use case. Mmm..is LDM
>> > mandatory for such a use case? Am open for thoughts just want the best
>> way
>> > to implement it.
>> > Can you explain a bit further what your thought was please?
>> >
>> > Thank you
>> > Regards
>> >
>> >
>> >
>> >
>> > On Thu, Dec 2, 2010 at 2:13 PM, James Carman <[email protected]
>> > >wrote:
>> >
>> > > Just make sure your form's model is a LDM too.
>> > >
>> > > On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj <
>> [email protected]>
>> > > wrote:
>> > > > Hi All
>> > > >
>> > > > I am guessing this is more of a Hibernate thing/issue but if some one
>> > has
>> > > > encountered this and has a explanation that I can probably use from
>> the
>> > > > Wicket front would be great.
>> > > >
>> > > > https://forum.hibernate.org/viewtopic.php?f=1&t=1008473
>> > > >
>> > > >
>> > > > I have a LazyIntializationException when i page through some items. I
>> > use
>> > > > the PageableListView, the List item(s) are entities that are
>> retrieved
>> > > via
>> > > > an association Person.phones which is  a Set type.
>> > > > The funny thing is, the LIException is intermittent. I am also using
>> > > > OpenSessionInViewFilter. Any thoughts?
>> > > >
>> > > > By the way the this is the load() implemenation, I have set the Model
>> > > > Object's phoneList with a list of values fetched via the
>> Service->DAO.
>> > I
>> > > > have used this with other entities without association and it works
>> >  but
>> > > I
>> > > > guess is a different scenario(not associations)
>> > > >
>> > > > Model = new LoadableDetachableModel<Object>() {
>> > > >   �...@override
>> > > >            protected Object load() {
>> > > >                return containerForm.getModelObject().getPhoneList();
>> > > >            }
>> > > >        };
>> > > > }
>> > > >
>> > > > If someone has any thoughts would appreiciate hearing from you.
>> > > >
>> > > >
>> > > > Cheers
>> > > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: [email protected]
>> > > For additional commands, e-mail: [email protected]
>> > >
>> > >
>> >
>>
>>
>>
>> --
>> regards,
>> Vineet Semwal
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to