|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.faces.component.UIComponentBase | +--javax.faces.component.UIOutput | +--javax.faces.component.UIForm | +--org.apache.struts.faces.component.FormComponent
FormComponent is a specialized subclass of
javax.faces.component.UIForm
that supports automatic
creation of form beans in request or session scope.
Field Summary | |
protected static org.apache.commons.logging.Log |
log
The Log instance for this class. |
Fields inherited from class javax.faces.component.UIForm |
TYPE |
Fields inherited from class javax.faces.component.UIComponentBase |
|
Fields inherited from interface javax.faces.component.UIComponent |
CLIENT_ID_ATTR, FACET_PARENT, FACET_PARENT_ATTR, SEPARATOR_CHAR |
Constructor Summary | |
FormComponent()
|
Method Summary | |
void |
createActionForm(javax.faces.context.FacesContext context)
Create an appropriate form bean in the appropriate scope, if one does not already exist. |
java.lang.String |
getAction()
Return the Struts action path to which this form should be submitted. |
org.apache.struts.config.ModuleConfig |
lookupModuleConfig(javax.faces.context.FacesContext context)
Return the ModuleConfig for the application module
this form is being processed for. |
void |
processDecodes(javax.faces.context.FacesContext context)
Create an instance of the form bean (if necessary) before delegating to the standard decoding process. |
void |
setAction(java.lang.String action)
Set the Struts action to which this form should be submitted. |
Methods inherited from class javax.faces.component.UIForm |
encodeBegin, encodeEnd, getComponentType, getFormName, setFormName |
Methods inherited from class javax.faces.component.UIOutput |
decode, updateModel |
Methods inherited from class javax.faces.component.UIComponentBase |
addChild, addChild, addFacet, addValidator, broadcast, clearChildren, clearFacets, clearValidators, containsChild, currentValue, encodeChildren, findComponent, getAttribute, getAttributeNames, getChild, getChildCount, getChildren, getClientId, getComponentId, getConverter, getFacet, getFacetNames, getFacetsAndChildren, getModelReference, getParent, getRendererType, getRendersChildren, getRendersSelf, getValidators, getValue, isRendered, isValid, processUpdates, processValidators, removeChild, removeChild, removeFacet, removeValidator, setAttribute, setComponentId, setConverter, setModelReference, setRendered, setRendererType, setValid, setValue, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
The Log
instance for this class.
Constructor Detail |
public FormComponent()
Method Detail |
public java.lang.String getAction()
Return the Struts action path to which this form should be submitted.
It is an alias for formName
(and value
) on the
superclass UIForm
.
public void setAction(java.lang.String action)
Set the Struts action to which this form should be submitted.
It is an alias for formName
(and value
) on the
superclass UIForm
.
action
- The new action pathpublic void processDecodes(javax.faces.context.FacesContext context) throws java.io.IOException
Create an instance of the form bean (if necessary) before delegating to the standard decoding process.
processDecodes
in interface javax.faces.component.UIComponent
processDecodes
in class javax.faces.component.UIComponentBase
context
- FacesContext for the request we are processing
java.io.IOException
- if an input/output error occurs
during decodingpublic void createActionForm(javax.faces.context.FacesContext context)
Create an appropriate form bean in the appropriate scope, if one does not already exist.
context
- FacesContext for the current request
java.lang.IllegalArgumentException
- if no ActionConfig for the
specified action attribute can be located
java.lang.IllegalArgumentException
- if no FormBeanConfig for the
specified form bean can be located
java.lang.IllegalArgumentException
- if no ModuleConfig can be
located for this application modulepublic org.apache.struts.config.ModuleConfig lookupModuleConfig(javax.faces.context.FacesContext context)
Return the ModuleConfig
for the application module
this form is being processed for.
context
- The FacesContext
for the current request
java.lang.IllegalArgumentException
- if no ModuleConfig
can be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |