Hi-

Just upgraded to 1.5.1 from 1.4.18 and was not seeing this behavior
described below.

In our application, the Wicket filter and error page is setup in the web.xml
like so:

<filter-mapping>
<filter-name>wicket.filter</filter-name>
<url-pattern>/app/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
 <error-page>
<error-code>404</error-code>
<location>/app/404</location>
</error-page>


In my WicketApplication class I am mounting the 404 [ *mountPage("404",
Error404Page.class);* ] so that I can use the Wicket page as my 404 page.
When I visit a non-existent page to invoke a 404, it looks like the CSS
resource URLs are not being built by Wicket correctly. Using fiddler, here's
what I see on a normal page:

Good:

http://localhost:8080/app/wicket/resource/org.eer.web.component.menu.MenuPanel/css/menu-ver-1317665980363.css
http://localhost:8080/app/wicket/resource/org.eer.web.component.menu.MenuPanel/css/menu-skin-ver-1317665980360.css
http://localhost:8080/app/wicket/resource/org.eer.web.component.menu.MenuPanel/js/superfish-ver-1317665980369.js
http://localhost:8080/app/wicket/resource/org.eer.web.component.menu.MenuPanel/js/menu-ver-1317665980367.js
http://localhost:8080/app/wicket/resource/org.eer.web.component.menu.MenuPanel/js/supersubs-ver-1317665980375.js
http://localhost:8080/app/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar-ver-1317647931210.css
http://localhost:8080/app/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar-ver-1317647931210.js

Not Good, when hitting a non-existent page:

http://localhost:8080/wicket/resource/org.eer.web.component.menu.MenuPanel/css/menu-skin-ver-1317665980360.css
http://localhost:8080/wicket/resource/org.eer.web.component.menu.MenuPanel/js/superfish-ver-1317665980369.js
http://localhost:8080/wicket/resource/org.eer.web.component.menu.MenuPanel/js/supersubs-ver-1317665980375.js
http://localhost:8080/wicket/resource/org.eer.web.component.menu.MenuPanel/js/menu-ver-1317665980367.js
http://localhost:8080/wicket/resource/org.eer.web.component.menu.MenuPanel/css/menu-ver-1317665980363.css

You will notice the "/app" is missing from the URLs.

Any advice on how to correct this behavior?


Thank you

Reply via email to