When I type a url to a non-existing resource from javax.faces.resource such as
http://myapp/javax.faces.resource/noexisting.xhtml
I am getting the default HTTP 404 page while my 404 error page is not being rendered . I understood that the FacesServlet is setting the status code to 404 instead of sending en error which is why my error page is never called. Is there a way to override this implementation to send an error instead of setting the status code?
I am using primefaces 3.5 and morajara 2.1.14.
Thanks for any help.