So pages should have a special serialization mechanism?
When they are not the top component when serializing they do a
replaceObject() ?
(with the pagemap:id string)
So when you are reading it back in. We get the page from the pagemap itself
(and deserialize it)
So that we always have one page for a specific pagemap:pageid in the cache
So:
PageA gets rendered
PageA is saved to disk.
PageB gets rendered and keeps a reference to PageA
PageB gets saved.
We also save PageA (But not as a member of PageB but as its own.. So
overriding (of version number isn't increased!) PageA on disk)
When PageB is get from disk again, PageA is also read in (again not as a
member but directly from the pagemap)
This way if you have large back references to pages (breadcrumbs) it won't
really matter.. Pages are saved only once in there own file.
johan
On 3/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
Okay, take this scenario:
Using second level sessionstore, with multiwindow support off (default).
You open two pages in two different tab. By default they are in same
(default) pagemap. In one of the window, you have modal window with a
page. The page inside modal window is in it's own pagemap, and
contains reference to parent page (that is in default pagemap).
The page in modal window do changes to outer page instance. When you
close modal window, you'll return to the outer page. If you're lucky
it's the same instance as the inner page referenced.
However, if you, in another tab, interact with other page from default
pagemap, the modal window parent page gets saved to disk and the modal
window contains reference to page that will not be used anymore.
-Matej
On 3/19/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> What do you mean lose all changes to the page?
>
>
>
> On 3/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > Well, I guess it should work then. Still, it seems to be quite fragile
> > solution to me. Because as soon as the original page moves to disk
> > (e.g. in another tab you visit another page in that pagemap) you lose
> > all changes to the page.
> >
> >
> >
> > On 3/19/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > yes every pagemap has an active page.
> > >
> > >
> > >
> > > On 3/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Will that work for secondlevelcachesessionstore as well? If so, it
> > > > should only be matter of calling
> > > > modalWindow.setPageMapName("myWindowPageMap");
> > > >
> > > > -Matej
> > > >
> > > > On 3/19/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > > different pagemaps?
> > > > >
> > > > >
> > > > >
> > > > > On 3/19/07, Matej Knopp <[EMAIL PROTECTED] > wrote:
> > > > > > Yes. Two active pages. He passes reference from one page to
> another.
> > > > > > The other page modifies the reference. But he doesn't return
to
> the
> > > > > > previous page using setResponsePage(). That would work, but
this
> is
> > > > > > not the case. Because here the other page is in an iframe of
the
> first
> > > > > > page. As far as I know there is no workaround for this atm.
Johan,
> any
> > > > > > idea?
> > > > > >
> > > > > > And yes, this has changed recently, because we have removed
> > > > > > softreference cache from secondlevelsessionstore, as it had a
very
> bad
> > > > > > scalability impact.
> > > > > >
> > > > > > -Matej
> > > > > >
> > > > > >
> > > > > > On 3/19/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > >
> > > > > > > > But. There is bigger problem than this. The problem with
two
> > > different
> > > > > > > > instances of one page. I don't see easy solution for this.
> > > Normally,
> > > > > > > > this is not an issue, because if you keep page instance,
you
> > > usually
> > > > > > > > call setResposnePage(instance) to get to it. However, this
is
> not
> > > the
> > > > > > > > case with modal window. So if you keep reference to modal
> window
> > > page,
> > > > > > > > and then change it's state, it won't help you, because
wicket
> > > reads
> > > > > > > > the serialized age anyway.
> > > > > > >
> > > > > > >
> > > > > > > so in this scenario there are really 2 "active" pages?
> > > > > > >
> > > > > > > johan
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > > Join SourceForge.net's Techsay panel and you'll get the
chance
> to
> > > share
> > > > > your
> > > > > > > opinions on IT & business topics through brief surveys-and
earn
> cash
> > > > > > >
> > > > >
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > > > _______________________________________________
> > > > > > > Wicket-user mailing list
> > > > > > > [email protected]
> > > > > > >
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance
to
> > > share
> > > > > your
> > > > > > opinions on IT & business topics through brief surveys-and
earn
> cash
> > > > > >
> > > > >
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > [email protected]
> > > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance
to
> share
> > > your
> > > > > opinions on IT & business topics through brief surveys-and earn
cash
> > > > >
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > [email protected]
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > >
> > >
>
-------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > opinions on IT & business topics through brief surveys-and earn
cash
> > > >
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
>
-------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
>
-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user