render-kit: | HTML_EXTENDED |
jsp-tag: | validateDateTimeRange |
component-family: | renderer-type: |
Input mask pattern converter for inputText component's value, pattern e.g. ###-##-####.
Attributes with a pass-through
value of
true
are not interpreted by the renderer and are passed
straight through to the rendered markup, without checking for validity. Attributes with a
pass-through
value of false
are interpreted
by the renderer, and may or may not be checked for validity by the renderer.
Attributes | |||||
attribute-name | pass-through | attribute-class | description | default-value | required |
---|---|---|---|---|---|
asis
|
false | boolean |
If set to true no attempt will be made to convert the submitted String value to some other Object; default is false. | false | false |
mask
|
false | java.lang.String |
The mask pattern to use, e.g. "???-###", "?" for alphabetic chars from a-Z, "#" for numeric chars 0-9. "!" and "~" can also be used if char3RegEx and char4RegEx values are set. | undefined | false |
protectMask
|
false | java.lang.String |
Protects the character in a "marker" position from being validated, i.e., you can "protect" a position in the string that contains a marker (#,?,!,~) so that a user can't type over this character. Instead the value of that position is set programmatically (usually in the initial value). Effectively this turns a character in the value into a literal. | undefined | false |
char1RegEx
|
false | java.lang.String |
Custom regular expression for the "#" marker. | undefined | false |
char2RegEx
|
true | java.lang.String |
Custom regular expression for the "?" marker. | undefined | false |
char3RegEx
|
false | java.lang.String |
Custom regular expression for the "!" marker; if a value is not set for this "!" will not be seen as a marker. | undefined | false |
char4RegEx
|
false | java.lang.String |
Custom regular expression for the "~" marker; if a value is not set for this "~" will not be seen as a marker. | undefined | false |