|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Form
Defines a single panel on a muli-panel page.
| Method Summary | |
|---|---|
java.lang.String |
getControllerBeanName()
Retrieves the controllerBeanName for this LayoutForm. |
java.util.Map |
getErrors(org.springframework.validation.Errors errors)
Gets errors for the current panel by retrieving all errors relating to fields defined for this panel from the errors object. |
FieldDefinition |
getFieldDefinition(java.lang.String path)
Gets a field definition from the fieldDefinitions map by the field path passed in. |
java.util.Map |
getFieldDefinitions()
|
java.lang.String |
getFormAction()
Gets the url for this panel |
java.lang.String |
getFormName()
|
boolean |
hasErrors(org.springframework.validation.Errors errors)
Checks the current panel for errors |
void |
setControllerBeanName(java.lang.String controllerBeanName)
Sets the controllerBeanName for this LayoutForm. |
void |
setFieldDefinitions(java.util.Map fields)
|
void |
setFormAction(java.lang.String url)
Sets the url for this panel. |
void |
setFormName(java.lang.String panelFormName)
|
void |
validate(javax.servlet.http.HttpServletRequest request,
java.lang.Object obj,
org.springframework.validation.Errors errors)
Calls validate on all validation rules associated with the fieldDefinitions for this panel. |
| Method Detail |
|---|
java.util.Map getFieldDefinitions()
void setFieldDefinitions(java.util.Map fields)
fields - The fields to set.FieldDefinition getFieldDefinition(java.lang.String path)
path - the path of the property in the object graph
void validate(javax.servlet.http.HttpServletRequest request,
java.lang.Object obj,
org.springframework.validation.Errors errors)
request - the current HttpServletRequestobj - the current command object to be validatederrors - the current errors for this requestjava.util.Map getErrors(org.springframework.validation.Errors errors)
errors - the current page errors
boolean hasErrors(org.springframework.validation.Errors errors)
errors - the current page errors
java.lang.String getFormName()
void setFormName(java.lang.String panelFormName)
panelName - The panelName to set.java.lang.String getFormAction()
void setFormAction(java.lang.String url)
url - java.lang.String getControllerBeanName()
void setControllerBeanName(java.lang.String controllerBeanName)
controllerBeanName - Sets the controllerBeanName for this LayoutForm.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||