Hi all I am searching for a robust pattern to work around PageExpiredException.
My first idea was to have all pages bookmarkable and rely on org.apache.wicket.settings.IPageSettings#getRecreateMountedPagesAfterExpiry() to recover. But this breaks when passing IModel in page constructors because then pages are no longer bookmarkable. Of course avoiding the constructor and letting Wicket create the page with PageParameters would solve this problem but I want to avoid this. It would be very useful to pass an IModel to a bookmarkable Page. How can this be done? I am trying to avoid expiring logout links (the primary driver of all this). In case of page expiry I can deal with the exceptional call of the default constructor from IPageSettings#getRecreateMountedPagesAfterExpiry() by responding with a bookmarkable page. Many thanks, Bernard --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
