Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.richfaces.component.behavior;
 
 
 import  javax.faces.component.behavior.ClientBehavior;
 import  javax.faces.component.behavior.ClientBehaviorContext;
 import  javax.faces.convert.Converter;
 
 import  org.richfaces.validator.ConverterDescriptor;
import  org.richfaces.validator.ValidatorDescriptor;

Interface for JSF Behavior that creates scripts for client-side validation

Author(s):
asmirnov@exadel.com
public interface ClientValidatorBehavior extends ClientBehavior {
    String BEHAVIOR_TYPE = "org.richfaces.behavior.ClientValidator";

    

Get JavaScript code for AJAX request.

Parameters:
context
    String getAjaxScript(ClientBehaviorContext context);

    

Look up for converter associated with target UIInput

Parameters:
context
Returns:
Converter instance or null if conversion not required.
    ConverterDescriptor getConverter(ClientBehaviorContext contextthrows ConverterNotFoundException;

    

Parameters:
context
    Collection<ValidatorDescriptor> getValidators(ClientBehaviorContext context);

    

Returns array of classes that represents JSR-303 validation groups.

    Class<?>[] getGroups();
    void setGroups(Class<?>... groups);
    boolean isDisabled();
    boolean isImmediateSet();
    boolean isImmediate();
    String getOnvalid();
New to GrepCode? Check out our FAQ X