When defining text input controls, the default server behavior allows empty strings, even if you have configured a regular expression and made the input control mandatory. Use this setting to enforce the regular expression even on empty strings, thus forcing the user to provide a conforming value for the input control.
Input Control Behavior |
||
Configuration File |
||
…\WEB-INF\applicationContext-cascade.xm |
||
Bean |
Description |
|
applyRegexpToEmptyString |
The default value of false gives the traditional behavior: even if a regular expression is defined, it is not applied to empty strings. If you want to strictly enforce the regular expression, even on empty input strings, set this property to true. |