| olstore.controller.EditUserController
EditUserController | public class EditUserController extends SimpleFormController (Code) | | Controller class used for editing a user's profile.
|
Constructor Summary | |
public | EditUserController() Creates a new form object with default values set, such as
what command class to use as the backing object, and which views to use. |
EditUserController | public EditUserController()(Code) | | Creates a new form object with default values set, such as
what command class to use as the backing object, and which views to use.
|
formBackingObject | protected Object formBackingObject(HttpServletRequest request) throws Exception(Code) | | Returns the backing object that this form will use.
Parameters: request - the HttpServletRequest this form's backing object. |
onBindAndValidate | protected void onBindAndValidate(HttpServletRequest request, Object command, BindException errors) throws Exception(Code) | | Validation method to handle the command's fields.
Parameters: request - the HttpServletRequest. Parameters: command - the backing object for this form. Parameters: errors - the errors to report when validation fails. |
onSubmit | protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code) | | Handles the submission of this form.
Parameters: request - the HttpServletRequest. Parameters: response - the HttpServletResponse. Parameters: command - this forms backing object. Parameters: errors - this form's errors as reported via validation. a new model and view to represent this form. |
referenceData | protected Map referenceData(HttpServletRequest request) throws Exception(Code) | | Returns the map model to use for this form's view.
Parameters: request - the HttpServletRequest. a model to be used on this form's view. |
setOlstore | public void setOlstore(OlstoreFacade olstore)(Code) | | Spring injection method for setting the olstore bean instance.
Parameters: olstore - the instance of olstore injected via spring. |
|
|