[ 
https://issues.apache.org/jira/browse/WICKET-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500938
 ] 

Peter Ertl commented on WICKET-610:
-----------------------------------

Also, I did _not_ forget to try this:

public class Error404Page extends MainTemplate
{
  @Override
  public boolean isErrorPage()
  {
    return true;
  }
}

however, the problem remains the same :-(

> header contributions fail on <error-pages>
> ------------------------------------------
>
>                 Key: WICKET-610
>                 URL: https://issues.apache.org/jira/browse/WICKET-610
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Peter Ertl
>
> if have the following in web.xml:
>       <error-page>
>               <error-code>404</error-code>
>               <location>/404</location>
>       </error-page>
> when I type in some intentionally stupid url like:
>   http://localhost/myapp/non-existent-page
> the error page will properly show up...
> however, the header contributions contain wrong paths, e.g.:
>   <wicket:link>
>     <link rel="stylesheet" type="text/css" href="BasePage.css"></link>
>   </wicket:link>
> will result in:
>   <link href="404/resources/mysite.pages.BasePage/BasePage_de.css" 
> rel="stylesheet" type="text/css"></link>
> however, this is wrong (path contains a "404/" ) as it should be:
>   <link href="resources/mysite.pages.BasePage/BasePage_de.css" 
> rel="stylesheet" type="text/css"></link>
> so, on error pages, resources are not usable because the error page path is 
> appended at the beginning...

-- 
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