InputText composite component is used for string, integer or password input elements.
Info
...
The component itself is accessed through the <crm:inputText> tag and is defined in the xmlns namespace with the declaration xmlns:em="http://java.sun.com/jsf/composite/crm".
Attributes
Name | Required | Type | Default | Description |
---|---|---|---|---|
columnClasses | false | String | ui-grid-col-12 | Comma separated list of column style classes of the gird layout that will be used to display the component.
|
columns | false | Integer | 1 | Number of columns of the gird layout that will be used to display the component.
|
decimalPlaces | false | Integer | The number of decimal digits that is defined in CRM.COM Formatting Settings. | Number of decimal places. Applicable only for numbers. |
feedback | false | Boolean | true | Flag enabling strength indicator for a password. Applicable only for passwords. |
id | false | String | Null | Unique identifier of the component |
inputStyle | false | String | text-align: right | Inline style of the input element. Applicable only for numbers. |
isInputNumber | false | Boolean | false | Flag indicating that this input element is a number or not. |
isPassword | false | Boolean | false | Flag indicating that this input element is a password or not. |
isRequired | false | Boolean | true if the data object property of the component is mandatory, otherwise false. | Marks component as required. |
labelKey | false | String | null | Label key that is defined in translation properties file and its translation will be used as the presentable name of the component. |
match | false | String | null | Identifier of another password component to match value against. |
managedBean | false | String | null | The name of the managed bean that will be used for retrieving the component values. |
mode | false | String | The mode of the managed bean. | The mode of the component. Allowed values are VIEW and EDIT. |
onchange | false | String | null | The name of the client side callback to execute when input element loses focus and its value has been modified since gaining focus. |
onKeyPressAction | false | String | null | The name of the client side callback to execute when a key is pressed and released over input element. |
parameters | false | Object | null | The parameter of the client side callback. |
placeholder | false | String | empty string | A short hint that describes the expected value of this input element. |
process | false | String | @this and the value of the refresh attribute | Component(s) to process in partial request. |
readonly | false | Boolean | false | Flag indicating that this component will prevent changes by the user |
refresh | false | String | @form | Component(s) to update with ajax. |
size | false | Integer | null | Number of characters used to determine the width of the input element. |
styleClass | false | String | null | Style class of the component. |
symbol | false | String | The prefix of the default currency that is defined in CRM.COM General Settings. | Desired symbol or unit. Applicable only for numbers. |
symbolPosition | false | String | p | Position of the symbol. Allowed values are p(prefix) and s(suffix). Applicable only for numbers. |
symbolType | false | String | currency | The type that will be used on converting number values. Allowed values are number, currency , or percent. Applicable only for numbers. |
tip | false | String | null | Label key that is defined in translation properties file and its translation will be used as a description of this input element. |
validatorMessage | false | String | null | The message to display when validation fails. Applicable only for passwords. |
value | false | Object | null | The value of the component. |
visible | false | Boolean | null | Controls the visibility of the component. |
Getting started with InputText
...
Examples
JSF Page
|
Managed Bean
|