This content has been marked as final.
Show 2 replies
-
1. Re: handling 404 with error-page in web.xml
mwohlf Dec 21, 2008 5:08 PM (in response to stefans)hello,
I also configured web.xml for a custom error page and use
<link rel="stylesheet" type="text/css" href="#{request.contextPath}/stylesheet/reset.css" media="screen" />
to include my stylesheet which seems to work for me, maybe
#{facesContext.externalContext.requestContextPath}
instead of
#{request.contextPath}
is the right way to do this :-/
however i would like to use
<a4j:loadStyle src="resource:///stylesheet/reset.css"/>
to include my stylesheets but the a4j tags don't work in my
error page, can anyone shed some light on this, has anyone used the a4j:loadStyle tag in custom error pages? -
2. Re: handling 404 with error-page in web.xml
mwohlf Dec 21, 2008 7:30 PM (in response to stefans)sorry for the noise,
was my bad, I had an incomplete filter-mapping in web.xml
missing the dispatcher tags:<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>ERROR</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
[...]