Hi, Usage of Wicket's Ajax behaviors make the page stateful, so there is no easy way to make it stateless. The easiest solution is to use org.apache.wicket.settings.IPageSettings#setRecreateMountedPagesAfterExpiry(false). This way you'll see the configured org.apache.wicket.settings.IApplicationSettings#getPageExpiredErrorPage() instead of a new instance of your page.
On Mon, Sep 17, 2012 at 5:23 AM, Ondrej Zizka <[email protected]> wrote: > Hi, > > I use a AjaxEditableLabel with a PropertyModel which points to an object > of the Page. > But after the session expires, clicking on the label to edit it causes > exception because the object of the page is empty (in my case, it > results into HBN's NoResultException). > > What's the way to handle this? > > The page is mounted as /product/${name}/${version}, so the URL contains > the information necessary to reload the entire page. So perhaps I could > use some LoadableDetachableModel somehow? > I've read about making the page stateless. Would that help? > > Thanks, > Ondra -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
