org.apache.myfaces.extensions.validator.core.initializer.component
Class AbstractHtmlCoreComponentsComponentInitializer

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.initializer.component.AbstractHtmlCoreComponentsComponentInitializer
All Implemented Interfaces:
ComponentInitializer

public abstract class AbstractHtmlCoreComponentsComponentInitializer
extends java.lang.Object
implements ComponentInitializer

Since:
x.x.3
Author:
Gerhard Petracek

Constructor Summary
AbstractHtmlCoreComponentsComponentInitializer()
           
 
Method Summary
 void configureComponent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.lang.Object> metaData)
           
protected  void configureMaxLengthAttribute(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.lang.Object> metaData)
           
protected abstract  void configureRequiredAttribute(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.lang.Object> metaData)
           
protected  java.lang.Boolean isComponentRequired(javax.faces.component.UIComponent uiComponent)
          if there is no special attribute at the component which should overrule the annotated property return true!
protected  boolean processComponent(javax.faces.component.UIComponent uiComponent)
           
protected  boolean validateEmptyFields()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHtmlCoreComponentsComponentInitializer

public AbstractHtmlCoreComponentsComponentInitializer()
Method Detail

configureComponent

public void configureComponent(javax.faces.context.FacesContext facesContext,
                               javax.faces.component.UIComponent uiComponent,
                               java.util.Map<java.lang.String,java.lang.Object> metaData)
Specified by:
configureComponent in interface ComponentInitializer

validateEmptyFields

protected boolean validateEmptyFields()

configureRequiredAttribute

protected abstract void configureRequiredAttribute(javax.faces.context.FacesContext facesContext,
                                                   javax.faces.component.UIComponent uiComponent,
                                                   java.util.Map<java.lang.String,java.lang.Object> metaData)

processComponent

protected boolean processComponent(javax.faces.component.UIComponent uiComponent)

isComponentRequired

protected java.lang.Boolean isComponentRequired(javax.faces.component.UIComponent uiComponent)
if there is no special attribute at the component which should overrule the annotated property return true!

Parameters:
uiComponent - component which implements the EditableValueHolder interface
Returns:
false to overrule the annotated property e.g. if component is readonly

configureMaxLengthAttribute

protected void configureMaxLengthAttribute(javax.faces.context.FacesContext facesContext,
                                           javax.faces.component.UIComponent uiComponent,
                                           java.util.Map<java.lang.String,java.lang.Object> metaData)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.