[ 
https://issues.apache.org/jira/browse/WICKET-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090943#comment-13090943
 ] 

Martin Grigorov commented on WICKET-3992:
-----------------------------------------

What exactly is the problem ?
You mount the MenuPage at /menu. The you use BookmarkablePageLink to a 
non-mounted ListPage so wicket uses 
/menu?wicket:bookmarkablePage=:com.mycompany.ListPage. In ListPage you have 
several Link which generate Urls with wicket:interface parameter with the 
ListPage id encoded in them. You wait for session expiration and then you click 
on such link, it tries to find ListPage by id to execute Link#onClick() but 
since the session has expired all its attributes are erased and there is no 
Wicket Session too, the disk store data for this expired session is removed too 
and the ListPage instance cannot be found. Thus you have PageExpiredException.
Everything is by design.

> Link crashes on Page Expiry
> ---------------------------
>
>                 Key: WICKET-3992
>                 URL: https://issues.apache.org/jira/browse/WICKET-3992
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.18
>         Environment: java version "1.6.0_25"
> Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
> Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
>            Reporter: bernard
>         Attachments: testcase.zip
>
>
> It appears one cannot get a PageExpiredException when clicking on a link on 
> the expired page.
> Please refer to the attached testcase - navigate to ListPage and let it 
> expire after > 1 minute. Then click on one of the links.
> The perplexing part is that the links contain references to the menu page 
> (not the list page as expected):
> http://localhost:8080/myproject-1.0-SNAPSHOT/menu?wicket:interface=:0:detail::ILinkListener::

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to