The <r:validator> behavior adds client-side validation to a form input control based on registered server-side validators. It provides this validation without the need to reproduce the server-side annotations.
The <r:validator> behavior triggers all client validator annotations listed in the relevant managed bean.
@author asmirnov@exadel.comInfo | Value |
---|---|
Behavior ID | org.richfaces.ui.behavior.ClientValidator |
Display Name | None |
Handler Class | org.richfaces.ui.validation.validator.ClientValidatorHandler |
Description | The <r:validator> behavior adds client-side validation to a form input control based on registered server-side validators. It provides this validation without the need to reproduce the server-side annotations. The <r:validator> behavior triggers all client validator annotations listed in the relevant managed bean. @author asmirnov@exadel.com |
Name | Required | Type | Description |
---|---|---|---|
data |
false
| javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Serialized (on default with JSON) data passed to the client by a developer on an AJAX request. It's accessible via "event.data" syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data |
disabled |
false
| javax.el.ValueExpression
(must evaluate to boolean )
| If "true", do not initiate an ajax request when the associated event is observed |
event |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of JavaScript event property (click, change, etc.) of parent component that triggers the behavior. If the event attribute is not defined, the behavior is triggered on the event that normally provides interaction behavior for the parent component |
immediate |
false
| javax.el.ValueExpression
(must evaluate to boolean )
| Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase. |
listener |
false
| javax.el.ValueExpression
(must evaluate to javax.el.MethodExpression )
| Method expression referencing a method that will be called when an AjaxBehaviorEvent has been broadcast for the listener. |
onbeforedomupdate |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| The client-side script method to be called after the ajax response comes back, but before the DOM is updated |
onbeforesubmit |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| The client-side script method to be called before the AJAX request is submitted |
onbegin |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| The client-side script method to be called before an ajax request. |
oncomplete |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| The client-side script method to be called after the DOM is updated |
onerror |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| The client-side script method to be called when an error has occurred during Ajax communications |
oninvalid |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| No Description |
onvalid |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| No Description |
queueId |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| Identify the name of the destination queue |
status |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String )
| ID of the request status component |
Output generated by Vdldoc View Declaration Language Documentation Generator.