validator - Validator
Specifies a validator method called during Process Validations of MethodBinding to perform check the value of the control.
Category
dataSyntax
validator="#{expression}"
<xp:this.validator>
<![CDATA[#{javascript:script}]]>
</xp:this.validator>
Where expression
is
an expression and script
is a script. Use $
instead
of #
to compute on page load instead of dynamically.Usage
In Design mode, click All Properties and look for validator under data.This
property must evaluate to a public method that takes FacesContext
, UIComponent
,
and Object
parameters, and returns void.