context.validationFailed(); context.renderResponse();
/** * @since JSF 2.0 */ @Override public void validationFailed() { FacesContext.getCurrentInstance().validationFailed(); }
/** * @since JSF 2.0 */ @Override public void validationFailed() { FacesContext.getCurrentInstance().validationFailed(); }
/** * Signals JSF that the validations phase of the current request has failed. This can be invoked in any other * phase than the validations phase. The value can be read by {@link #isValidationFailed()} in Java and by * <code>#{facesContext.validationFailed}</code> in EL. * @see FacesContext#validationFailed() */ public static void validationFailed() { getContext().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * Signals JSF that the validations phase of the current request has failed. This can be invoked in any other * phase than the validations phase. The value can be read by {@link #isValidationFailed()} in Java and by * <code>#{facesContext.validationFailed}</code> in EL. * @see FacesContext#validationFailed() */ public static void validationFailed() { getContext().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
@Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#validationFailed()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#validationFailed() */ @Override public void validationFailed() { getWrapped().validationFailed(); }
private static void invalidateInputsByPropertyPathAndShowMessages(FacesContext context, UIForm form, Object bean, Map<String, String> violations) { for (Entry<String, String> violation : violations.entrySet()) { forEachInputWithMatchingBase(context, form, bean, violation.getKey(), input -> { context.validationFailed(); input.setValid(false); String clientId = input.getClientId(context); addError(clientId, violation.getValue(), getLabel(input)); }); } }
private static void invalidateInputsByPropertyPathAndShowMessages(FacesContext context, UIForm form, Object bean, Map<String, String> violations) { for (Entry<String, String> violation : violations.entrySet()) { forEachInputWithMatchingBase(context, form, bean, violation.getKey(), input -> { context.validationFailed(); input.setValid(false); String clientId = input.getClientId(context); addError(clientId, violation.getValue(), getLabel(input)); }); } }
private static void invalidateInputsByShowMessageForAndShowMessages(FacesContext context, UIForm form, Map<String, String> violations, String showMessageFor) { for (String forId : showMessageFor.split("\\s+")) { UIComponent component = form.findComponent(forId); context.validationFailed(); if (component instanceof UIInput) { ((UIInput) component).setValid(false); } String clientId = component.getClientId(context); addErrors(clientId, violations, getLabel(component)); } }
private static void invalidateInputsByShowMessageForAndShowMessages(FacesContext context, UIForm form, Map<String, String> violations, String showMessageFor) { for (String forId : showMessageFor.split("\\s+")) { UIComponent component = form.findComponent(forId); context.validationFailed(); if (component instanceof UIInput) { ((UIInput) component).setValid(false); } String clientId = component.getClientId(context); addErrors(clientId, violations, getLabel(component)); } }
public static void addMessage(final Message message) { getFacesContext().addMessage(null, parse(message)); if (message instanceof ValidationFailedMessage) { getFacesContext().validationFailed(); } }