3 Replies Latest reply on May 20, 2010 2:24 PM by Rand Asin

    response.setStatus on Faces page

    Rand Asin Novice

      I want to setup a 404 error page in Faces.  I went with the redirect-on-error approach because it's a requirement.


      So in my web.xml I have





      That works fine.  But I also want to return 404.faces with 404 response status code.  So I added



      <%response.setStatus(HttpServletResponse.SC_NOT_FOUND); %>


      to the top 404.jsp


      Now the returned status code is correct, but it returns a blank page.  My backing beans are still instantiated, but looks like it skipped component tree rendering.  How do I make this work?  Any thoughts would be appreciated.  Thanks.


      Using RichFaces 3.3.2 SR1 with MyFaces 1.2.8