| java.lang.Object com.nabhinc.portlet.mvcportlet.core.FormErrors
FormErrors | public class FormErrors (Code) | | Represents a collection errors resulting from a form validation.
author: Padmanabh Dabke author: (c) 2004 Nabh Information Systems, Inc. All Rights Reserved. |
FormErrors | public FormErrors(String formName, Vector errors)(Code) | | Creates a new error collection.
Parameters: formName - Form corresponding to teh errors Parameters: errors - Vector of FormError objects. |
getError | public String getError(String fieldName)(Code) | | Returns error key for the requested field name. If
there is no error for the field, it returns null.
Parameters: fieldName - |
getFormErrors | public FormError[] getFormErrors()(Code) | | Returns an array of FormError objects in the collection.
|
getFormName | public String getFormName()(Code) | | Returns form name that corresponds to the errors.
|
isErrorField | public boolean isErrorField(String fieldName)(Code) | | Returns true if the specified field was invalid.
Parameters: fieldName - Field name true if there is an error associated with the field, false otherwise. |
|
|