To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Properties
Name | Returns | Notes | Example |
---|---|---|---|
fieldMessages | List |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
validateString ( fieldName, required ) | String | ||
validateLong ( fieldName, required ) | Long | ||
validateInteger ( fieldName, required ) | Integer | ||
validateDate ( fieldName, required ) | Date | ||
validateBoolean ( fieldName, required ) | Boolean | ||
validateDouble ( fieldName, required ) | Double | ||
validateBigDecimal ( fieldName, required ) | BigDecimal | ||
validateList ( fieldName, required ) | List | ||
validateListLongs ( fieldName, required ) | List | ||
validate ( fieldName, type, required ) | Object | Check the type and presence of the named form parameter. If invalid a FieldMessage is added | |
addError ( fieldName, message ) | ValidationContext | ||
toJsonResult ( ) | JsonResult | IF field errors have been found returns a JsonResult with status false and the list of messages. Otherwise returns a JsonResult with status true |