Re: Unable to have an error 404 not found with a pattern validator

Splash Forums PrettyFaces Users Unable to have an error 404 not found with a pattern validator Re: Unable to have an error 404 not found with a pattern validator

#21276

You are getting a 302 instead of a 404 because you are using the onError attribute in your configuration. This tells PrettyFaces, that you want to redirect the user to another URL (the one with the id “error”) in case of validation errors.

Just remove the onError attribute and you should get a 404! :)