http://thread.gmane.org/gmane.comp.java.tapestry.user/53095/focus=53170
Cheers, lasitha.

On 10/22/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have code like following, but it generate an exception when form submits,
> i thought there is only one Session open and usr is a detached instance, any
> hints on how to fix this? thanks.
>
> A.C.
>
> Illegal attempt to associate a collection with two open sessions
>
>
> @Persist
> private Usr usr;
>
>
> @Inject
> private Session _session;
>
> public Class onActivate(Long id) {
>         usr = (Usr)_session.get(Usr.class, id);
> }
>
> String onSuccess() {
>         _session.saveOrUpdate(usr);
>          return null;
> }
>
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-how-to-use-a-detached-hibernate-object-in-a-form--tf4669657.html#a13339389
> Sent from the Tapestry - 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