Yes that will work also (using the session for that)

Pagemaps are simple to use jmust create a page with the PageMap arg
constructor. Then that page is created and stored in that pagmap and
wont push the opener page out of the default pagmap. See
PageMap.forNam()

On 1/6/08, Edvin Syse <[EMAIL PROTECTED]> wrote:
> > This is not going to work yes.
> > I also mentioned this in the presentation i gave in amsterdam at the
> > wicket meeting. You cant have shared variables between pages and
> > expect those to be always shared and the same instance. This will not
> > work with the SLC because we serrialize the pages per page. So ewvery
> > page has its own byte array no matter how it is saved (main page or a
> > reference from another page) we will extract all the pages from each
> > other so that they are always the right version when readed back in.
> > The problem is that after deserializing the page is the root so every
> > thing is new and nothing is shared between other pages.
>
> What if I saved the object in my session and retrieved it/changed it from
> there on the different pages. That should work, right?
>
> > If you have that with a modal window then you can go around that by
> > using  a differewnt pagemap for that modal window so that both pages
> > are the active onces in memory and dont have to be read back in
>
> If I can't go the session-way, can you explain how I would to that? I'm not
> familiar with PageMaps..
>
> Btw, I found that the problem occurs not when I open the ModalWindow, but
> when I setResponsePage() on a Link in the ModalWindow, and then
> change the ModelObject before closing. That seems consistent with what
> you're telling me here if I understand you correctly.
>
> -- Edvin
>
> ---------------------------------------------------------------------
> 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