| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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 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.  | 
 String | 
getAction()
Return the Struts action path to which this form should be submitted.  | 
 String | 
getEnctype()
Return the encoding type for this form submit.  | 
 String | 
getFamily()
Return the component family to which this component belongs.  | 
 String | 
getFocus()
Return the focus element name.  | 
 String | 
getFocusIndex()
Return the focus element index.  | 
 String | 
getOnreset()
Return the JavaScript to execute on form reset.  | 
 String | 
getOnsubmit()
Return the JavaScript to execute on form submit.  | 
 String | 
getStyle()
Return the CSS style(s) to be rendered for this component.  | 
 String | 
getStyleClass()
Return the CSS style class(es) to be rendered for this component.  | 
 String | 
getTarget()
Return the target frame for the response to this form submit.  | 
 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,
             Object state)
Restore our state from the specified object.  | 
 Object | 
saveState(javax.faces.context.FacesContext context)
Create and return an object representing our state to be saved.  | 
 void | 
setAction(String action)
Set the Struts action to which this form should be submitted.  | 
 void | 
setEnctype(String enctype)
Set the encoding type for this form submit.  | 
 void | 
setFocus(String focus)
Set the focus element name.  | 
 void | 
setFocusIndex(String focusIndex)
Set the focus element index.  | 
 void | 
setOnreset(String onreset)
Set the JavaScript to execute on form reset.  | 
 void | 
setOnsubmit(String onsubmit)
Set the JavaScript to execute on form submit.  | 
 void | 
setStyle(String style)
Set the CSS style(s) to be rendered for this component.  | 
 void | 
setStyleClass(String styleClass)
Set the CSS style class(es) to be rendered for this component.  | 
 void | 
setTarget(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 Log log
The Log instance for this class.
| Constructor Detail | 
|---|
public FormComponent()
| Method Detail | 
|---|
public String getAction()
Return the Struts action path to which this form should be submitted.
public void setAction(String action)
Set the Struts action to which this form should be submitted.
action - The new action pathpublic String getEnctype()
Return the encoding type for this form submit.
public void setEnctype(String enctype)
Set the encoding type for this form submit.
enctype - The new enctype pathpublic String getFamily()
Return the component family to which this component belongs.
getFamily in class javax.faces.component.UIFormpublic String getFocus()
Return the focus element name.
public void setFocus(String focus)
Set the focus element name.
focus - The new focus pathpublic String getFocusIndex()
Return the focus element index.
public void setFocusIndex(String focusIndex)
Set the focus element index.
focusIndex - The new focusIndex pathpublic String getOnreset()
Return the JavaScript to execute on form reset.
public void setOnreset(String onreset)
Set the JavaScript to execute on form reset.
onreset - The new onreset pathpublic String getOnsubmit()
Return the JavaScript to execute on form submit.
public void setOnsubmit(String onsubmit)
Set the JavaScript to execute on form submit.
onsubmit - The new onsubmit pathpublic String getStyle()
Return the CSS style(s) to be rendered for this component.
public void setStyle(String style)
Set the CSS style(s) to be rendered for this component.
style - The new CSS style(s)public String getStyleClass()
Return the CSS style class(es) to be rendered for this component.
public void setStyleClass(String styleClass)
Set the CSS style class(es) to be rendered for this component.
styleClass - The new CSS style class(es)public String getTarget()
Return the target frame for the response to this form submit.
public void setTarget(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.UIFormcontext - FacesContext for the request we are processing
public void restoreState(javax.faces.context.FacesContext context,
                         Object state)
Restore our state from the specified object.
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasecontext - FacesContext for the current requeststate - Object containing our saved statepublic Object saveState(javax.faces.context.FacesContext context)
Create and return an object representing our state to be saved.
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIFormcontext - 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
IllegalArgumentException - if no ActionConfig for the
  specified action attribute can be located
IllegalArgumentException - if no FormBeanConfig for the
  specified form bean can be located
IllegalArgumentException - if no ModuleConfig can be
  located for this application modulepublic 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
IllegalArgumentException - if no ModuleConfig
  can be found
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||