I have a plain HTML page error.html. When I use
return "error.html?faces-redirect=true";
it will actually redirect to error.xhtml, not error.html.
How can I redirect to a non-JSF page in a JSF action method?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The navigation case outcome is treated as a JSF view. So it always expects a JSF view. If renaming
error.htmltoerror.xhtmlis not possible for some unclear reason (remember, you can safely use plain HTML in a Facelets page), then you’d need to send a redirect to a non-JSF resource yourself usingExternalContext#redirect().