org.sakaiproject.metaobj.utils.mvc.impl.servlet
Class AbstractFormController

java.lang.Object
  extended byorg.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
All Implemented Interfaces:
CancelableController, Controller, FormController
Direct Known Subclasses:
AbstractStructuredArtifactDefinitionController

public abstract class AbstractFormController
extends Object
implements CancelableController, FormController

Created by IntelliJ IDEA. User: jbush Date: Dec 15, 2004 Time: 9:52:19 PM To change this template use File | Settings | File Templates.


Field Summary
static String PARAM_CANCEL
           
 
Constructor Summary
AbstractFormController()
           
 
Method Summary
 boolean isCancel(Map request)
          Return if cancel action is specified in the request.
 ModelAndView processCancel(Map request, Map session, Map application, Object command, Errors errors)
           
 Map referenceData(Map request, Object command, Errors errors)
          Create a map of all data the form requries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.metaobj.utils.mvc.intf.Controller
handleRequest
 

Field Detail

PARAM_CANCEL

public static final String PARAM_CANCEL
See Also:
Constant Field Values
Constructor Detail

AbstractFormController

public AbstractFormController()
Method Detail

isCancel

public boolean isCancel(Map request)
Return if cancel action is specified in the request.

Default implementation looks for "_cancel" parameter in the request.

Specified by:
isCancel in interface CancelableController
Parameters:
request - current HTTP request
See Also:
PARAM_CANCEL

processCancel

public ModelAndView processCancel(Map request,
                                  Map session,
                                  Map application,
                                  Object command,
                                  Errors errors)
                           throws Exception
Specified by:
processCancel in interface CancelableController
Throws:
Exception

referenceData

public Map referenceData(Map request,
                         Object command,
                         Errors errors)
Description copied from interface: FormController
Create a map of all data the form requries. Useful for building up drop down lists, etc.

Specified by:
referenceData in interface FormController
Parameters:
request -
command -
errors -
Returns: