if you keep on to PageB in PageA and when you want to go back to PageB
then you can set that page as a response page. That should work fine
So just keep a reference in a map to the pages you want.
We do clear them from the pagemap when we encounter a backbutton
but if you keep a refence to those pages and resuse them that is not a
problem


On 2/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

for our navigation bar, I want to use a page cache to resume editing the
latest page version. Wicket's page map acts like a stack, so opening
  PageA,
  PageB,
  PageA,

leads to the expiration of the PageB instance. However I want to reuse the
cached/saved page instance of PageB (could be a list, where the user has
marked several items). So unlike saving the last 5 accessed pages in the
pagemap-STACK, I want to save the (maybe) 10 last accessed pages in a MAP,
that doesn't expire pages when displaying a cached page.

Taking a look at the wicket source code, I found that PageMap.access()
cleans up all previous pages if I return "back" to the instance of PageA.
Unfortunately all involved methods are private or final, such that I can't
change this behavior by subclassing to provide my own expiration strategy.

Does anybody has ideas or any experience with caching page instances?
Thanks
for your replies.

Chris
--
View this message in context:
http://www.nabble.com/Page-cache---page-pool-tf3213152.html#a8922873
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to