To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Properties
| Name | Returns | Notes | Example |
|---|---|---|---|
| parameters | Map | ||
| files | Map | ||
| request | Request | ||
| currentUser | Profile |
Methods
| Name | Returns | Notes | Example |
|---|---|---|---|
| subContext ( prefix ) | FormContext | Create another FormContext only containing parameters with the given prefix, and with the prefix removed | |
| listParam ( paramName ) | List | ||
| listLongsParam ( paramName ) | List | ||
| cleanedParam ( paramName ) | String | ||
| rawParam ( paramName ) | String | ||
| dateParam ( paramName ) | Date | ||
| integerParam ( paramName ) | Integer | ||
| longParam ( paramName ) | Long | Safely attempt to parse to a Long. If the parameter does not exist, or is blank, or is not an integer value, will return null | |
| bigDecimalParam ( paramName ) | BigDecimal | ||
| booleanParam ( paramName ) | Boolean | ||
| booleanParam ( paramName, defaultVal ) | Boolean | ||
| parseList ( indicatorParamPrefix ) | List | ||
| findMapFromSuffix ( suffix ) | Map | ||
| findMapFromPrefix ( prefix ) | Map | ||
| databind ( ob, fields ) | void | ||
| databind ( ob, prefix ) | void | ||
| hasParamsWithPrefix ( prefix ) | boolean | Returns true if any parameters start with the given prefix | |
| paramsWithPreffix ( prefix ) | Map | ||
| paramsWithPreffix ( prefix, removePrefix ) | Map | ||
| containsParam ( name ) | boolean | Returns true if the parameter name is present in the request, regardless of whether it has a value or not | |
| hasValue ( paramName ) | boolean | Returns true if the specified parameter is present and has a non-blank value | |
| parseTerms ( ) | Map | ||
| toQueryParams ( ) | String | ||
| toCleanedMap ( ) | Map |