|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIForm org.apache.struts.faces.component.FormComponent
public class 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 |
---|
COMPONENT_FAMILY, COMPONENT_TYPE |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
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. |
java.lang.String |
getEnctype()
Return the encoding type for this form submit. |
java.lang.String |
getFamily()
Return the component family to which this component belongs. |
java.lang.String |
getFocus()
Return the focus element name. |
java.lang.String |
getFocusIndex()
Return the focus element index. |
java.lang.String |
getOnreset()
Return the JavaScript to execute on form reset. |
java.lang.String |
getOnsubmit()
Return the JavaScript to execute on form submit. |
java.lang.String |
getStyle()
Return the CSS style(s) to be rendered for this component. |
java.lang.String |
getStyleClass()
Return the CSS style class(es) to be rendered for this component. |
java.lang.String |
getTarget()
Return the target frame for the response to this form submit. |
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 |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Restore our state from the specified object. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Create and return an object representing our state to be saved. |
void |
setAction(java.lang.String action)
Set the Struts action to which this form should be submitted. |
void |
setEnctype(java.lang.String enctype)
Set the encoding type for this form submit. |
void |
setFocus(java.lang.String focus)
Set the focus element name. |
void |
setFocusIndex(java.lang.String focusIndex)
Set the focus element index. |
void |
setOnreset(java.lang.String onreset)
Set the JavaScript to execute on form reset. |
void |
setOnsubmit(java.lang.String onsubmit)
Set the JavaScript to execute on form submit. |
void |
setStyle(java.lang.String style)
Set the CSS style(s) to be rendered for this component. |
void |
setStyleClass(java.lang.String styleClass)
Set the CSS style class(es) to be rendered for this component. |
void |
setTarget(java.lang.String target)
Set the target frame for the response to this form submit. |
Methods inherited from class javax.faces.component.UIForm |
---|
isSubmitted, processUpdates, processValidators, setSubmitted |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
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.
public void setAction(java.lang.String action)
Set the Struts action to which this form should be submitted.
action
- The new action pathpublic java.lang.String getEnctype()
Return the encoding type for this form submit.
public void setEnctype(java.lang.String enctype)
Set the encoding type for this form submit.
enctype
- The new enctype pathpublic java.lang.String getFamily()
Return the component family to which this component belongs.
getFamily
in class javax.faces.component.UIForm
public java.lang.String getFocus()
Return the focus element name.
public void setFocus(java.lang.String focus)
Set the focus element name.
focus
- The new focus pathpublic java.lang.String getFocusIndex()
Return the focus element index.
public void setFocusIndex(java.lang.String focusIndex)
Set the focus element index.
focusIndex
- The new focusIndex pathpublic java.lang.String getOnreset()
Return the JavaScript to execute on form reset.
public void setOnreset(java.lang.String onreset)
Set the JavaScript to execute on form reset.
onreset
- The new onreset pathpublic java.lang.String getOnsubmit()
Return the JavaScript to execute on form submit.
public void setOnsubmit(java.lang.String onsubmit)
Set the JavaScript to execute on form submit.
onsubmit
- The new onsubmit pathpublic java.lang.String getStyle()
Return the CSS style(s) to be rendered for this component.
public void setStyle(java.lang.String style)
Set the CSS style(s) to be rendered for this component.
style
- The new CSS style(s)public java.lang.String getStyleClass()
Return the CSS style class(es) to be rendered for this component.
public void setStyleClass(java.lang.String styleClass)
Set the CSS style class(es) to be rendered for this component.
styleClass
- The new CSS style class(es)public java.lang.String getTarget()
Return the target frame for the response to this form submit.
public void setTarget(java.lang.String target)
Set the target frame for the response to this form submit.
target
- The new CSS target(s)public void processDecodes(javax.faces.context.FacesContext context)
Create an instance of the form bean (if necessary) before delegating to the standard decoding process.
processDecodes
in class javax.faces.component.UIForm
context
- FacesContext for the request we are processingpublic void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
Restore our state from the specified object.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
context
- FacesContext
for the current requeststate
- Object containing our saved statepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
Create and return an object representing our state to be saved.
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIForm
context
- FacesContext
for the current requestpublic 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 |