The <o:validateOrder> validates if the values of the given UIInput components as specified
in the components attribute are in the order as specified by the type attribute which
accepts the following values:
lt (default): from least to greatest, without duplicates.lte: from least to greatest, allowing duplicates (equal values next to each other).gt: from greatest to least, without duplicates.gte: from greatest to least, allowing duplicates (equal values next to each other).
This validator has the additional requirement that the to-be-validated values must implement Comparable.
This validator throws an IllegalArgumentException when one or more of the values do not implement it. Note
that when this validator is placed before all of the components, then it will only compare the raw
unconverted submitted string values, not the converted object values. If you need to compare by the converted object
values, then you need to place this validator after all of the components.
The default message is
{0}: Please fill out the values of all those fields in order
For general usage instructions, refer ValidateMultipleFields documentation.
| Info | Value |
|---|---|
| Component Type | org.omnifaces.component.validator.ValidateOrder |
| Handler Class | None |
| Renderer Type | None |
| Description | None |
| Name | Required | Type | Description |
|---|---|---|---|
binding | false | jakarta.el.ValueExpression
(must evaluate to jakarta.faces.component.UIComponent)
| The ValueExpression linking this component to a property in a backing bean. |
components | true | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| The space separated collection of client IDs of UI input components to be validated. |
disabled | false | jakarta.el.ValueExpression
(must evaluate to boolean)
| Whether the validation should be disabled or not. |
id | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
invalidateAll | false | jakarta.el.ValueExpression
(must evaluate to boolean)
| Whether to invalidate all fields or only those which are actually invalid as per
#shouldInvalidateInput(FacesContext, UIInput, Object) |
message | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| The validation message to be shown on failure. Any "{0}" placeholder in the message will be substituted with a comma separated collection of labels of the input fields. |
rendered | false | jakarta.el.ValueExpression
(must evaluate to boolean)
| Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true. |
showMessageFor | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| The identifier for which this validator should show the message. Defaults to "@this" which is the
validator component itself. Other available values are "@all", "@invalid", "@global" and
"@violating". Any other space separated value will be treated as client ID of UI input component. |
type | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| The ordering type to be used. |
Output generated by Vdldoc View Declaration Language Documentation Generator.