<o:validateBean>
allows the developer to control bean validation groups on a
per-UICommand
or UIInput
component basis. Usage example:
<h:commandButton> <o:validateBean groups="javax.validation.groups.Default,com.example.MyGroup"/> </h:commandButton>
Name | Required | Type | Description |
---|---|---|---|
validationGroups | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| A comma-separated list of validation groups. A validation group is a fully-qualified class name. |
disabled | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| A boolean value enabling page level determination of whether or not this validator is enabled. |
value | false | javax.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". |
validateMethod | false | javax.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. |
copier | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Set the bean copy strategy to use in case 'value' attribute is specified and the 'validateMethod' 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 'validateMethod' attribute is not set to 'validateCopy'. |
Output generated by Vdldoc View Declaration Language Documentation Generator.