Oracle Fusion Middleware Tag Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81455-02 |
type: oracle.adf.rich.ClientConverter
The clientConverter tag is a declarative way to register a custom client only converter script. Use clientConverter tag for cases where you need to format and parse display strings within the client and not on the server, for example: to format display value of protected attribute.
Usually, converters perform formatting and parsing on the server during the validation and rendering phases. Optionally, ADF converters can also perform basic sanity parsing and formatting within the client to trap errors early and avoid waiting until the next server round-trips for conversion. Hence before using the clientConverter tag, be sure to look for any existing converter tags which might eliminate the need for using custom scripts.
Name | Type | Supports EL? | Description |
---|---|---|---|
disabled | boolean | Yes |
Default Value: false Whether the converter should be disabled, default to false. |
getAsObject | String | Yes | Inline JavaScript snippet that converts a formatted display string back to its original form. A variable named 'value' which contains the string to be parsed will be injected into the context of the inline script. If the script is multi-line, a return keyword may be optionally used to indicate the returned value of script. |
getAsObjectMethod | String | Yes | JavaScript function name that converts a formatted display string back to its original form. The value to be formatted is passed in to the function as a parameter. |
getAsString | String | Yes | Inline JavaScript code snippet that transforms the component value into a formatted display string. A variable named 'value' which contains the string to be formatted will be injected into the context of the inline script. If the script is multi-line, a return keyword may be optionally used to indicate the returned value of script. |
getAsStringMethod | String | Yes | JavaScript function name that converts a formatted display string back to its original form. The value to be formatted is passed in to the function as a parameter. |
hint | String | Yes | Custom hint message to be used. |