| olstore.controller.ItemController
ItemController | public class ItemController extends SimpleFormController (Code) | | Controls the creating of a new item.
|
Constructor Summary | |
public | ItemController() Creates a new item controller with values set for the form's view as well as
the command class to use as the form's backing object. |
ItemController | public ItemController()(Code) | | Creates a new item controller with values set for the form's view as well as
the command class to use as the form's backing object.
|
formBackingObject | protected Object formBackingObject(HttpServletRequest request) throws Exception(Code) | | Returns this form's backing object.
Parameters: request - the HttpServletRequest this form's backing object. |
isFormChangeRequest | protected boolean isFormChangeRequest(HttpServletRequest request)(Code) | | Checks to see if the request is to change the form or a regular submit request.
Parameters: request - the HttpServletRequest. true if the request is to change the form, false otherwise. |
onBindAndValidate | protected void onBindAndValidate(HttpServletRequest request, Object command, BindException errors) throws Exception(Code) | | The validation method used to validate the fields of the command object.
Parameters: request - the HttpServletRequest Parameters: command - this form's backing object. Parameters: errors - the errors that occurred while validating this form. |
onFormChange | protected void onFormChange(HttpServletRequest request, HttpServletResponse response, Object command) throws Exception(Code) | | If the incoming request is to change the form, this method is invoked.
Parameters: request - the HttpServletRequest. Parameters: response - the HttpServletResponse. Parameters: command - this form's backing object. |
onSubmit | protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code) | | Handles when this form is submitted and returns a new model and view
to represent the form.
Parameters: request - the HttpServletRequest. Parameters: response - the HttpServletResponse. Parameters: errors - the errors that occured during validation. a new model and view to represent this form. |
referenceData | protected Map referenceData(HttpServletRequest request) throws Exception(Code) | | Returns a basic map to use in this form's view to store basic information.
Parameters: request - the HttpServletRequest. the model for this form's view. |
setOlstore | public void setOlstore(OlstoreFacade olstore)(Code) | | Spring injection method to set this form's olstore instance.
Parameters: olstore - this form's olstore instance object. |
|
|