You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2013/06/21 15:00:20 UTC

[jira] [Resolved] (WICKET-5247) Broken Link in Tomcat because of Page Mount

     [ https://issues.apache.org/jira/browse/WICKET-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-5247.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.11
                   7.0.0
                   6.9.0
         Assignee: Sven Meier

the handler is no longer mapped by MountedMapper when the value for a required placeholder is
missing
                
> Broken Link in Tomcat because of Page Mount
> -------------------------------------------
>
>                 Key: WICKET-5247
>                 URL: https://issues.apache.org/jira/browse/WICKET-5247
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-quickstart
>    Affects Versions: 6.8.0
>         Environment: Tomcat 7.0.41
>            Reporter: Martin Wischnewski
>            Assignee: Sven Meier
>            Priority: Minor
>             Fix For: 6.9.0, 7.0.0, 1.5.11
>
>         Attachments: quickstart.zip, webapp.war
>
>
> I post this message on the user mailing List (http://apache-wicket.1842946.n4.nabble.com/Broken-Link-in-Tomcat-because-of-Page-Mount-tt4659663.html) and Martin Grigorov asked me, to create a ticket on Jira.
> Broken Link in Tomcat because of Page Mount
> Following situation:
> -I have a Wicket Application(6.8.0) which runs under the context "webapp" on a Tomcat 7.0.41
> -I mount a Page with two parameters (this is important) in the WicketApplication.
> 	mountPage("/mount/${parameter1}/${parameter2}", MountedPage.class);
> -The mounted Page(MountedPage.class) has only a simple Link
> -There are two links on the HomePage to the mounted Page.
>  They are declared as follows:
>  
> 	add(new Link<Void>("link") {
> 			@Override
> 			public void onClick() {
> 				setResponsePage(MountedPage.class, linkParameters);
> 			}
> 	});
> 	add(new Link<Void>("brokenLink") {
> 			@Override
> 			public void onClick() {
> 				setResponsePage(new MountedPage(linkParameters));
> 			}
> 	});
> 	
> I deploy this Application as a war file on a Tomcat under the context "webapp".
> When I call the first Link on the HomePage and then the Link on the mounted Page, everything works fine.
> But if I call the second Link and then the Link on the mounted Page, the link is broken.
> The context is missing in the generated link
> 	http://localhost:8080/wicket/bookmarkable/com.mycompany.LinkedPage
> Does anyone have an idea, why the second link does not work on Tomcat?
> I add a Quickstart and the war file as attachment.
> Ps: Both links works fine in Jetty. 
> Pss:If I remove the mount command, both links will work in  Tomcat too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira