public interface ClientValidatorBehavior
extends javax.faces.component.behavior.ClientBehavior
Interface for JSF Behavior that creates scripts for client-side validation
Modifier and Type | Field and Description |
---|---|
static String |
BEHAVIOR_TYPE |
Modifier and Type | Method and Description |
---|---|
String |
getAjaxScript(javax.faces.component.behavior.ClientBehaviorContext context)
Get JavaScript code for AJAX request. |
ConverterDescriptor |
getConverter(javax.faces.component.behavior.ClientBehaviorContext context)
Look up for converter associated with target UIInput |
Class<?>[] |
getGroups()
Returns array of classes that represents JSR-303 validation groups. |
String |
getOninvalid() |
String |
getOnvalid() |
Collection<ValidatorDescriptor> |
getValidators(javax.faces.component.behavior.ClientBehaviorContext context)
|
boolean |
isDisabled() |
boolean |
isImmediate() |
boolean |
isImmediateSet() |
void |
setGroups(Class<?>... groups) |
static final String BEHAVIOR_TYPE
String getAjaxScript(javax.faces.component.behavior.ClientBehaviorContext context)
Get JavaScript code for AJAX request.
context
- ConverterDescriptor getConverter(javax.faces.component.behavior.ClientBehaviorContext context) throws ConverterNotFoundException
Look up for converter associated with target UIInput
context
- Converter
instance or null if conversion not required.ConverterNotFoundException
Collection<ValidatorDescriptor> getValidators(javax.faces.component.behavior.ClientBehaviorContext context)
context
- Class<?>[] getGroups()
Returns array of classes that represents JSR-303 validation groups.
void setGroups(Class<?>... groups)
boolean isDisabled()
boolean isImmediateSet()
boolean isImmediate()
String getOninvalid()
String getOnvalid()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.