What would the method facesContext.isValidationFailed() return after the Render Response Phase when the validation fails? It returns false for me in this case.
What would the method facesContext.isValidationFailed() return after the Render Response Phase when the validation
Share
It will only return
truewhenFacesContext#validationFailed()has been called by the JSF validation internals or by your own code as follows:As far JSF internal code is concerned, only
UIInput#processValidators()andUIViewParameter#processValidators()will implicitly call this method whenever aValidatorExceptionhas been caught.If it returns
falsefor you, then you’re apparently doing validation in a non-standard way. For example inside the action method, while you should be using a realValidatorfor this.