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

Martin Grigorov resolved WICKET-3897.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC6

Improved with r1146591.
Now BasicResourceReferenceMapper returns -1 if it doesn't match and +1 if it 
does.

For your use case you don't need to mount a page at "/". Any request to "/" 
will be handled by Application#getHomePage() anyway. The home page can extend 
from any other page and you don't have to do anything special about it.

> renderCSSReference doesn't work with mountPage("/")
> ---------------------------------------------------
>
>                 Key: WICKET-3897
>                 URL: https://issues.apache.org/jira/browse/WICKET-3897
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC5.1
>         Environment: Windows.  Java 6.  Jetty.
>            Reporter: Ken Stevens
>            Assignee: Martin Grigorov
>              Labels: css, mountPage
>             Fix For: 1.5-RC6
>
>         Attachments: wicketbug3897.zip
>
>
> response.renderCSSReference(new PackageResourceReference(BasePage.class, 
> "BasePage.css"));
> will correctly render the css reference if the page is not mounted or if it 
> is mounted to a location other than "/".  However if I mount the page to "/" 
> using WebApplication.mountPage() then the css reference doesn't work.

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

        

Reply via email to