On Jan 7, 2008 5:34 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> This is exactly what i explained above!!
> Why tell that i was wrong?
Sorry, i might not have read your response properly :)
>
> again you cant have 1 instance of something (lets say a model)
> share that between 2 pages and then expect that to always be the same
> instance
> when 1 or both pages are serialized.
>
> Again this will NOT work and can't easily be fixed because a page no matter
> how it is saved
> (by itself or as a reference of another page) is always saved as a single
> entity.
> Or matej has really changed that again, but i don't think so..
>
> Because currently we have almost have the exact behavior you would have if
> it was 1 global memory, except for that 1 issue of sharing an instance over
> multiply pages and really expect
> that that will always is that case.
The proper way is not to share the object itself. But you can pass
another page reference and used that to get the object. That way it
works.

-Matej
>
> johan
>
>
>
>
> On 1/7/08, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > That's too bad, as it works as it's supposed for me now. I would
> > really need to see some code.
> > Do you pass object reference from pageA to pageB, or the entire pageA?
> >
> > because if you have situation like this:
> >
> > pageA holds reference to objectX
> > pageA passes reference to objectX to pageB
> > pageB modifies objectX and returns to pageA
> >
> > it will not work.
> >
> > but if you pass the pageA reference to pageB, so that pageB holds
> > reference to pageA as well as objectX, it should work.
> >
> > -Matej
> >
> > On Jan 7, 2008 1:01 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> > > >> Wow. Page.readResolve is not called, at least not on JDK6. When I
> > > >> modify the access modifier to public instead of private, suddenly
> > it's
> > > >> called. But the serialization specification says it can have any
> > > >> access modifier.
> > > >>
> > > >> I've commited the fix to current trunk, any chance you can build
> > > >> wicket from svn and test it with your project?
> > > >
> > > > Done! It solved the problem! Thank you so much, this made my day!
> > (Which
> > > > was over many hours ago, time to get some sleep :))
> > >
> > > I was too fast.. Now I got the error again, just had to try more times..
> > :(
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to