You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/01/09 10:51:53 UTC
[jira] [Resolved] (WICKET-5043) Page not mounted with
WebApplication#mountPackage
[ https://issues.apache.org/jira/browse/WICKET-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5043.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.14.0
Changed PackageMapper#pageMustHaveBeenCreatedBookmarkable() to return false.
The intention/javadoc of this method is not very clear but it says that mappers used explicitly by the application (as MountedMapper and PackageMapper are) should return false.
BookmarkableMapper is used internally by Wicket if there is no explicit mount and it returns true.
> Page not mounted with WebApplication#mountPackage
> -------------------------------------------------
>
> Key: WICKET-5043
> URL: https://issues.apache.org/jira/browse/WICKET-5043
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.4.0
> Environment: java 1.7, glassfish-3.1.2.2
> Reporter: bernard
> Assignee: Martin Grigorov
> Fix For: 6.14.0, 7.0.0
>
> Attachments: AJAX_TestCase.zip, testcase.zip
>
>
> A bookmarkable page FormPage is mounted via WebApplication#mountPackage().
> If this page is opened via IModel model; setResponsePage(new FormPage(IModel model)); then the URL is /wicket/page?0 which is not mounted.
> If the page is mounted via WebApplication#mountPage() then the URL is mounted as expected.
> If the page is not mounted then the users get PageExpiredException which in this case is unrecoverable.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)