| org.apache.beehive.netui.pageflow.validation.ValidatorRules
ValidatorRules | public class ValidatorRules extends FieldChecks (Code) | | |
Method Summary | |
public static boolean | validateLongRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request) Check if a field's value is within a range ("min" and "max" Long variables on the passed-in Field).
Parameters: bean - the bean that validation is being performed on. Parameters: va - the ValidatorAction that is currently being performed. Parameters: field - the Field object associated with the current field being validated. Parameters: errors - the ActionMessages object to add errors to if any validation errors occur. Parameters: request - the current request object. | public static boolean | validateValidWhen(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request, ServletContext servletContext) Check if a given expression evaluates to true .
Parameters: bean - the bean that validation is being performed on. Parameters: va - the ValidatorAction that is currently being performed. Parameters: field - the Field object associated with the current field being validated. Parameters: errors - the ActionMessages object to add errors to if any validation errors occur. Parameters: request - the current request object. |
validateLongRange | public static boolean validateLongRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request)(Code) | | Check if a field's value is within a range ("min" and "max" Long variables on the passed-in Field).
Parameters: bean - the bean that validation is being performed on. Parameters: va - the ValidatorAction that is currently being performed. Parameters: field - the Field object associated with the current field being validated. Parameters: errors - the ActionMessages object to add errors to if any validation errors occur. Parameters: request - the current request object. true if in range, false otherwise. |
validateValidWhen | public static boolean validateValidWhen(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request, ServletContext servletContext)(Code) | | Check if a given expression evaluates to true .
Parameters: bean - the bean that validation is being performed on. Parameters: va - the ValidatorAction that is currently being performed. Parameters: field - the Field object associated with the current field being validated. Parameters: errors - the ActionMessages object to add errors to if any validation errors occur. Parameters: request - the current request object. true if the given expression evaluates to true |
|
|