|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mindmatters.faces.application.IdForcingComponentFactory
public final class IdForcingComponentFactory
ComponentFactory that generates "clean" client ids (in fact
they are equal to their component id) for input components within a
HtmlForm.
| Constructor Summary | |
|---|---|
IdForcingComponentFactory()
|
|
| Method Summary | |
|---|---|
void |
addComponent(Application application,
java.lang.String componentType,
java.lang.String componentClassName)
Register a new mapping of component type to the name of the corresponding UIComponent class. |
UIComponent |
createComponent(Application application,
java.lang.String componentType)
Instantiate and return a new UIComponent instance of the class
specified by a previous call to addComponent() for the
specified component type. |
UIComponent |
createComponent(Application application,
ValueBinding componentBinding,
FacesContext context,
java.lang.String componentType)
Call the getValue() method on the specified
ValueBinding. |
java.util.Iterator |
getComponentTypes(Application application)
Return an Iterator over the set of currently defined
component types for this Application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdForcingComponentFactory()
| Method Detail |
|---|
public void addComponent(Application application,
java.lang.String componentType,
java.lang.String componentClassName)
UIComponent class. This allows subsequent calls to
createComponent() to serve as a factory for
UIComponent instances.
addComponent in interface ComponentFactoryapplication - the original Application of the underlying
JSF implementationcomponentType - The component type to be registeredcomponentClassName - The fully qualified class name of the corresponding
UIComponent implementation
public UIComponent createComponent(Application application,
java.lang.String componentType)
UIComponent instance of the class
specified by a previous call to addComponent() for the
specified component type.
createComponent in interface ComponentFactoryapplication - the original Application of the underlying
JSF implementationcomponentType - The component type for which to create and return a new
UIComponent instance
public UIComponent createComponent(Application application,
ValueBinding componentBinding,
FacesContext context,
java.lang.String componentType)
getValue() method on the specified
ValueBinding. If it returns a UIComponent instance,
return it as the value of this method. If it does not, instantiate a new
UIComponent instance of the specified component type, pass the
new component to the setValue() method of the specified
ValueBinding, and return it.
createComponent in interface ComponentFactoryapplication - the original Application of the underlying
JSF implementationcomponentBinding - ValueBinding representing a component value binding
expression (typically specified by the component
attribute of a custom tag)context - FacesContext for the current requestcomponentType - Component type to create if the ValueBinding does not
return a component instance
public java.util.Iterator getComponentTypes(Application application)
Iterator over the set of currently defined
component types for this Application.
getComponentTypes in interface ComponentFactoryapplication - the original Application of the underlying
JSF implementation
|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||