[
https://issues.apache.org/jira/browse/WICKET-4087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4087.
-------------------------------------
Resolution: Not A Problem
Wicket's MountedMapper (the mapper behind Application#mountPage() ) needs the
page id to be functional.
If you want to cheat it (by removing the page id) then cheat it completely.
I.e. it is your own responsibility to fix it after you broke it.
> Page Reload on Submit of non-versioned Page
> -------------------------------------------
>
> Key: WICKET-4087
> URL: https://issues.apache.org/jira/browse/WICKET-4087
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.0
> Environment: Wicket version: 1.5
> 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)
> Server: GlassFish 3.1.1
> Reporter: bernard
> Attachments: NoVersionQuickStart.zip
>
>
> A custom MountedMapper extension is used to support a non-versioned page.
> This works in 1.5 but not in snapshots after 1.5.
> A corresponding solution works in 1.4 also.
> The attached quickstart works with mountPage(...) but it fails with the
> custom mapper.
> The page gets reconstructed, and even with an AJAX request, the whole page is
> re-loaded with user input wiped out.
> I am only guessing here, but I think it would be good if, in case there is no
> version in the page URL, Wicket knows how to fetch the only version that
> should exist for this page.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira