Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces UI Components UI 4.1.0.CR2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.richfaces.component.behavior
Class ClientValidatorImpl

    java.lang.Object
      javax.faces.component.behavior.BehaviorBase
          javax.faces.component.behavior.ClientBehaviorBase
              org.richfaces.component.behavior.ClientBehavior
                  org.ajax4jsf.component.behavior.AjaxBehavior
                      org.richfaces.component.behavior.ClientValidatorImpl

All Implemented Interfaces:
  javax.faces.component.behavior.Behavior, javax.faces.component.behavior.ClientBehavior, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, org.ajax4jsf.component.AjaxClientBehavior, ClientValidatorBehavior

    public class ClientValidatorImpl

extends AjaxBehavior
implements ClientValidatorBehavior

Author:
  asmirnov@exadel.com

Field Summary

Fields inherited from class org.ajax4jsf.component.behavior.AjaxBehavior
`BEHAVIOR_ID`

Fields inherited from interface org.richfaces.component.behavior.ClientValidatorBehavior
`BEHAVIOR_TYPE`

Constructor Summary
`ClientValidatorImpl()`

Method Summary
`void` | `broadcast(javax.faces.event.BehaviorEvent event)`
`protected boolean` | `findMessages(javax.faces.component.UIComponent parent, javax.faces.component.UIComponent component, Set<javax.faces.component.UIComponent> messages, boolean found, Object id)` Recursive search messages for the parent component.
`protected void` | `findRichMessages(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String id, Set<javax.faces.component.UIComponent> messages)` Find all instances of the `UIRichMessages` and update list of the rendered messages.
`String` | `getAjaxScript(javax.faces.component.behavior.ClientBehaviorContext context)` Get JavaScript code for AJAX request.
`org.richfaces.validator.ConverterDescriptor` | `getConverter(javax.faces.component.behavior.ClientBehaviorContext context)` Look up for converter associated with target UIInput
`Collection<String>` | `getExecute()`
`Class<?>[]` | `getGroups()` Returns array of classes that represents JSR-303 validation groups.
`Set<javax.faces.component.UIComponent>` | `getMessages(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)`
`Collection<String>` | `getRender()`
`protected javax.faces.render.ClientBehaviorRenderer` | `getRenderer(javax.faces.context.FacesContext context, String rendererType)` Look up for `ClientBehaviorRenderer` instence
`String` | `getRendererType()`
`String` | `getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext)`
`Collection<org.richfaces.validator.ValidatorDescriptor>` | `getValidators(javax.faces.component.behavior.ClientBehaviorContext context)`
`boolean` | `isBypassUpdates()`
`boolean` | `isImmediateSet()`
`boolean` | `isLimitRender()`
`void` | `restoreState(javax.faces.context.FacesContext context, Object state)`
`Object` | `saveState(javax.faces.context.FacesContext context)`
`void` | `setGroups(Class<?>... groups)`

Methods inherited from class org.ajax4jsf.component.behavior.AjaxBehavior
`addAjaxBehaviorListener, getData, getHints, getOnbeforedomupdate, getOnbeforesubmit, getOnbegin, getOncomplete, getOnerror, getQueueId, getStatus, isDisabled, isImmediate, removeAjaxBehaviorListener, setBypassUpdates, setData, setDisabled, setExecute, setImmediate, setLimitRender, setLiteralAttribute, setOnbeforedomupdate, setOnbeforesubmit, setOnbegin, setOncomplete, setOnerror, setQueueId, setRender, setStatus`

Methods inherited from class org.richfaces.component.behavior.ClientBehavior
`compare, getFacesContext, getStateHelper, getValueExpression, setLiteralValue, setValueExpression`

Methods inherited from class javax.faces.component.behavior.ClientBehaviorBase
`decode, getRenderer`

Methods inherited from class javax.faces.component.behavior.BehaviorBase
`addBehaviorListener, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, setTransient`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.richfaces.component.behavior.ClientValidatorBehavior
`isDisabled, isImmediate`

Methods inherited from interface javax.faces.component.behavior.ClientBehavior
`decode, getHints`

Constructor Detail

### ClientValidatorImpl

    public ClientValidatorImpl()

Method Detail

### getScript

    public String getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext)

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

### getRendererType

    public String getRendererType()

  Overrides:
    `getRendererType` in class `AjaxBehavior`

### broadcast

    public void broadcast(javax.faces.event.BehaviorEvent event)
                   throws javax.faces.event.AbortProcessingException

  Specified by:
    `broadcast` in interface `javax.faces.component.behavior.Behavior`
  Overrides:
    `broadcast` in class `AjaxBehavior`
  Throws:
    `javax.faces.event.AbortProcessingException`

### getMessages

    public Set<javax.faces.component.UIComponent> getMessages(javax.faces.context.FacesContext context,
                                                              javax.faces.component.UIComponent component)

### findRichMessages

    protected void findRichMessages(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    String id,
                                    Set<javax.faces.component.UIComponent> messages)

  Find all instances of the `UIRichMessages` and update list of the rendered messages.

  Parameters:
    `context` -
    `component` -
    `messages` -

### findMessages

    protected boolean findMessages(javax.faces.component.UIComponent parent,
                                   javax.faces.component.UIComponent component,
                                   Set<javax.faces.component.UIComponent> messages,
                                   boolean found,
                                   Object id)

  Recursive search messages for the parent component.

  Parameters:
    `parent` -
    `component` -
    `messages` -
    `id` -
  Returns:

### getRenderer

    protected javax.faces.render.ClientBehaviorRenderer getRenderer(javax.faces.context.FacesContext context,
                                                                    String rendererType)

  Look up for `ClientBehaviorRenderer` instence

  Parameters:
    `context` - current JSF context
    `rendererType` - desired renderer type
  Returns:
    renderer instance
  Throws:
    `{@link` - FacesException} if renderer can not be found

### getConverter

    public org.richfaces.validator.ConverterDescriptor getConverter(javax.faces.component.behavior.ClientBehaviorContext context)
                                                             throws ConverterNotFoundException

  Description copied from interface: `ClientValidatorBehavior`

  Look up for converter associated with target UIInput

  Specified by:
    `getConverter` in interface `ClientValidatorBehavior`
  Returns:
    `Converter` instance or null if conversion not required.
  Throws:
    `ConverterNotFoundException`

### getValidators

    public Collection<org.richfaces.validator.ValidatorDescriptor> getValidators(javax.faces.component.behavior.ClientBehaviorContext context)

  Description copied from interface: `ClientValidatorBehavior`

  Specified by:
    `getValidators` in interface `ClientValidatorBehavior`
  Returns:

### getGroups

    public Class<?>[] getGroups()

  Description copied from interface: `ClientValidatorBehavior`

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

  Specified by:
    `getGroups` in interface `ClientValidatorBehavior`
  Returns:

### setGroups

    public void setGroups(Class<?>... groups)

  Specified by:
    `setGroups` in interface `ClientValidatorBehavior`

### getAjaxScript

    public String getAjaxScript(javax.faces.component.behavior.ClientBehaviorContext context)

  Description copied from interface: `ClientValidatorBehavior`

  Get JavaScript code for AJAX request.

  Specified by:
    `getAjaxScript` in interface `ClientValidatorBehavior`
  Returns:

### saveState

    public Object saveState(javax.faces.context.FacesContext context)

  Specified by:
    `saveState` in interface `javax.faces.component.StateHolder`
  Overrides:
    `saveState` in class `AjaxBehavior`

### restoreState

    public void restoreState(javax.faces.context.FacesContext context,
                             Object state)

  Specified by:
    `restoreState` in interface `javax.faces.component.StateHolder`
  Overrides:
    `restoreState` in class `AjaxBehavior`

### isImmediateSet

    public boolean isImmediateSet()

  Specified by:
    `isImmediateSet` in interface `ClientValidatorBehavior`

### isLimitRender

    public boolean isLimitRender()

  Specified by:
    `isLimitRender` in interface `org.ajax4jsf.component.AjaxClientBehavior`
  Overrides:
    `isLimitRender` in class `AjaxBehavior`

### isBypassUpdates

    public boolean isBypassUpdates()

  Overrides:
    `isBypassUpdates` in class `AjaxBehavior`

### getExecute

    public Collection<String> getExecute()

  Specified by:
    `getExecute` in interface `org.ajax4jsf.component.AjaxClientBehavior`
  Overrides:
    `getExecute` in class `AjaxBehavior`

### getRender

    public Collection<String> getRender()

  Specified by:
    `getRender` in interface `org.ajax4jsf.component.AjaxClientBehavior`
  Overrides:
    `getRender` in class `AjaxBehavior`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces UI Components UI 4.1.0.CR2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.