org.apache.myfaces.custom.validatebeanbehavior
Class ValidateBeanBehavior

java.lang.Object
  extended by javax.faces.component.behavior.BehaviorBase
      extended by javax.faces.component.behavior.ClientBehaviorBase
          extended by org.apache.myfaces.custom.validatebeanbehavior.ValidateBeanBehavior
All Implemented Interfaces:
javax.faces.component.behavior.Behavior, javax.faces.component.behavior.ClientBehavior, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder

public class ValidateBeanBehavior
extends javax.faces.component.behavior.ClientBehaviorBase

Behavior for Bean Validation validations in JavaScript.

This class can be attached to UIComponent instances and validate the entire form. Any UIMessages instances in the form are looked up and used for positioning error messages.

Author:
Jan-Kees van Andel

Field Summary
static java.lang.String VALIDATOR_FACTORY_KEY
           
 
Constructor Summary
ValidateBeanBehavior()
           
 
Method Summary
 java.lang.String getScript(javax.faces.component.behavior.ClientBehaviorContext ctx)
          
 
Methods inherited from class javax.faces.component.behavior.ClientBehaviorBase
decode, getHints, getRenderer, getRendererType
 
Methods inherited from class javax.faces.component.behavior.BehaviorBase
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, restoreState, saveState, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.Behavior
broadcast
 

Field Detail

VALIDATOR_FACTORY_KEY

public static final java.lang.String VALIDATOR_FACTORY_KEY
See Also:
Constant Field Values
Constructor Detail

ValidateBeanBehavior

public ValidateBeanBehavior()
Method Detail

getScript

public java.lang.String getScript(javax.faces.component.behavior.ClientBehaviorContext ctx)

Specified by:
getScript in interface javax.faces.component.behavior.ClientBehavior
Overrides:
getScript in class javax.faces.component.behavior.ClientBehaviorBase


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.