| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.jaffa.presentation.portlet.FormBase
This is the base class for all the 'Form' classes
| Field Summary | 
| Fields inherited from class org.apache.struts.action.ActionForm | 
| multipartRequestHandler, servlet | 
| Constructor Summary | |
| FormBase() | |
| Method Summary | |
|  void | cleanup()The form should override this method for destroying any references that it holds | 
|  void | clearErrors(HttpServletRequest request)This clears all the errors generated while processing this Form | 
|  Component | getComponent()Returns the Component to which this Form belongs | 
|  ActionErrors | getErrors(HttpServletRequest request)Returns the errors generated while processing this Form | 
|  WidgetCache | getWidgetCache()Returns the WidgetCache of all the models for the Component | 
|  boolean | hasErrors(HttpServletRequest request)Checks if any errors have been generated | 
|  void | initForm()The form should override this method for defaulting the data in the form-bean | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     ActionError error)Record an error | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     ApplicationException appExp)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     ApplicationExceptions appExps)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key,
                     Object value0)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key,
                     Object[] values)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key,
                     Object value0,
                     Object value1)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key,
                     Object value0,
                     Object value1,
                     Object value2)Record an error. | 
|  void | raiseError(HttpServletRequest request,
                     String property,
                     String key,
                     Object value0,
                     Object value1,
                     Object value2,
                     Object value3)Record an error. | 
|  void | reset(ActionMapping mapping,
           HttpServletRequest request)This sets the Component & the WidgetCache fields | 
|  void | setComponent(Component component)Sets the Component for the Form | 
| Methods inherited from class org.apache.struts.action.ActionForm | 
| getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public FormBase()
| Method Detail | 
public Component getComponent()
public void setComponent(Component component)
component - The Component objectpublic WidgetCache getWidgetCache()
public void initForm()
public void cleanup()
public void reset(ActionMapping mapping,
                  HttpServletRequest request)
mapping - The mapping used to select this instancerequest - The servlet request we are processingpublic void clearErrors(HttpServletRequest request)
request - The servlet request we are processingpublic ActionErrors getErrors(HttpServletRequest request)
request - The servlet request we are processing
public boolean hasErrors(HttpServletRequest request)
request - The servlet request we are processing
public void raiseError(HttpServletRequest request,
                       String property,
                       ActionError error)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)error - The error message to be added
public void raiseError(HttpServletRequest request,
                       String property,
                       String key)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error message
public void raiseError(HttpServletRequest request,
                       String property,
                       String key,
                       Object value0)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error messagevalue0 - First replacement value
public void raiseError(HttpServletRequest request,
                       String property,
                       String key,
                       Object value0,
                       Object value1)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement value
public void raiseError(HttpServletRequest request,
                       String property,
                       String key,
                       Object value0,
                       Object value1,
                       Object value2)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement valuevalue2 - Third replacement value
public void raiseError(HttpServletRequest request,
                       String property,
                       String key,
                       Object value0,
                       Object value1,
                       Object value2,
                       Object value3)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement valuevalue2 - Third replacement valuevalue3 - Fourth replacement value
public void raiseError(HttpServletRequest request,
                       String property,
                       String key,
                       Object[] values)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)key - Message key for this error messagevalues - Array of replacement values
public void raiseError(HttpServletRequest request,
                       String property,
                       ApplicationException appExp)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)appExp - the exception against which the error is being raised. This exception will have the errorToken and arguments, if any.
public void raiseError(HttpServletRequest request,
                       String property,
                       ApplicationExceptions appExps)
request - The servlet request we are processingproperty - Property name (or ActionErrors.GLOBAL_ERROR)appExps - Error will raised against each ApplicationException passed in this parameter.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||