o

Tag validateBean

Attributes 
NameRequiredTypeDescription
validationGroupsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
A comma-separated list of validation groups. A validation group is a fully-qualified class name.
disabledfalsejakarta.el.ValueExpression
(must evaluate to boolean)
A boolean value enabling page level determination of whether or not this validator is enabled.
valuefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
If specified, then only the given bean will be validated at class level. If unspecified, then only the bean properties bound to the in the current request processed/executed input fields will be validated "as usual".
methodfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Set the class level validation method, which can be either 'validateCopy' or 'validateActual'. If set to 'validateCopy', then it will perform the validation on a copy/clone of the actual bean. This has the advantage that the validation can be performed before the model is updated. If set to 'validateActual', then it will perform the validation on the actual bean instance. This has the disadvantage that the validation can only be performed after the model is updated and thus the action method will always be invoked regardless of the validation outcome. Defaults to 'validateCopy'. This attribute is ignored when the 'value' attribute is unspecified.
copierfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Set the bean copy strategy to use in case 'value' attribute is specified and the 'method' attribute is set (or defaulted) to 'validateCopy'. This can be either an EL expression referring a concrete instance, or a String representing the fully qualified name of the instance of the org.omnifaces.util.copier.Copier interface, which must be stateless and/or threadsafe. If unspecified, then it defaults to the best possibility in this order: Cloneable, or Serializable, or copy constructor, or default constructor. This attribute is ignored when the 'value' attribute is unspecified, or when the 'method' attribute is not set to 'validateCopy'.
showMessageForfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The identifier for which this validator should show the message. Defaults to "@form" which is the parent UIForm. Other available values are "@all" which will show the message for all invalidated components, "@global" which will show a global message, and "@violating" which will match components by ConstraintViolation Property Path. Any other space separated value will be treated as client ID of UI input component.
messageFormatfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The faces message uses a predefined message format, which corresponds to the value of jakarta.faces.validator.BeanValidator.MESSAGE in the message bundle. The default message format of {1}: {0} prepends all the validated labels which were checked when the error message occurred. This is useful in the case of validating a single bean property, but sometimes confusing in the case of validating a bean with many properties.

In case you'd like to fine-tune the bean validation message on a per-<o:validateBean>-basis, then you can since OmniFaces 3.12 use the messageFormat attribute. Any {0} placeholder will be substituted with the error message and any {1} placeholder will be substituted with the labels of all validated fields.

Output generated by Vdldoc View Declaration Language Documentation Generator.