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

Martin Grigorov commented on WICKET-2916:
-----------------------------------------

The case here is a bit different:
Wicket correctly creates:

{code}
<html 
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; > 
    <head>  
        <title>Wicket Quickstart Archetype Homepage</title> 
    
        <wicket:link> 
                <link href="DummyPanel.css" rel="stylesheet" type="text/css"/>  
        
        </wicket:link> 
</head> 
    <body> 
        <strong>Check console output</strong> 
                                <div wicket:id="dummy-panel"><wicket:panel> 
</wicket:panel></div> 
        <br/> 
        <span wicket:id="message">the value of the parameter 
&#039;corrupted&#039; is &#039;foo&#039;</span> 
    </body> 
</html> 
{code}

But since there is no DummyPanel.css and the WicketFilter is setup to listen to 
'/*' and the HomePage.class is mount with:
{code}
mount(new MixedParamUrlCodingStrategy("homepage", 
                        HomePage.class, new String[] { "corrupted" }));
{code}
the request for the .css resource 
(http://localhost:8080/homepage/DummyPanel.css) looks like a request to 
/homepage with a single parameter with value 'DummyPanel.css'.

It looks like a bug in Wicket but it is just bad configuration in the 
application.

> A stylesheet reference inside a wicket:link which doesn't resolve corrupts 
> the url parameters.
> ----------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2916
>                 URL: https://issues.apache.org/jira/browse/WICKET-2916
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.7, 1.4.9
>            Reporter: Jacob Persson
>            Priority: Minor
>         Attachments: quickstart-2916.tar.gz
>
>
> A stylesheet reference inside  a wicket:link which doesn't resolve corrupts 
> the url parameters. When a stylesheet is missing the parameter value is 
> replaced by the name of the referenced stylesheet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to