| org.sakaiproject.metaobj.utils.mvc.intf.FormController
All known Subclasses: org.theospi.portfolio.matrix.control.EditScaffoldingCellController, org.theospi.portfolio.matrix.control.EditScaffoldingConfirmationController, org.sakaiproject.metaobj.shared.control.AddStructuredArtifactDefinitionController, org.theospi.portfolio.matrix.control.CellFormPickerController, org.theospi.portfolio.matrix.control.ExposedScaffoldingController, org.theospi.portfolio.presentation.control.AddLayoutController, org.theospi.portfolio.matrix.control.ListEvaluationItemController, org.theospi.portfolio.matrix.control.AddScaffoldingController, org.theospi.portfolio.matrix.control.CellController, org.theospi.portfolio.matrix.control.EditScaffoldingCellConfirmationController, org.theospi.portfolio.style.tool.AddStyleController, org.theospi.portfolio.security.control.PermissionsController, org.theospi.portfolio.matrix.control.ViewMatrixController, org.theospi.portfolio.help.control.GlossaryImportController, org.theospi.portfolio.matrix.control.BaseListObjectController, org.theospi.portfolio.matrix.control.ViewScaffoldingController, org.theospi.portfolio.matrix.control.PrettyScaffoldingController, org.theospi.portfolio.matrix.control.ImportScaffoldingController, org.sakaiproject.metaobj.shared.control.FormCreateResourceHelper, org.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController, org.theospi.utils.mvc.impl.servlet.AbstractFormController,
FormController | public interface FormController extends Controller(Code) | | This controller is useful for handling form submissions. In a normal form submission
formBackingObject is called to create the backing object. Next the system binds
request params into this object, and performs validation. If validation errors are
detected the system re-renders the form view. This flow creates a problem if you need
to populate the model with something for the form, because if you try to do this
work in formBackingObject, you notice the system doesn't call this again in the case
of validation erros. The referenceData methods provides an convenient place to do this
work. This method will be called before rendering the form the first time, and before
rendering the form after validation errors.
author: John Ellis (john.ellis@rsmart.com) author: John Bush (john.bush@rsmart.com) |
Method Summary | |
public Map | referenceData(Map request, Object command, Errors errors) Create a map of all data the form requries. |
referenceData | public Map referenceData(Map request, Object command, Errors errors)(Code) | | Create a map of all data the form requries.
Useful for building up drop down lists, etc.
Parameters: request - Parameters: command - Parameters: errors - |
|
|