When defining text input controls, the default server behavior allows empty strings, even if you've configured a regular expression and made the input control mandatory. Use this setting to enforce the regular expression even on empty strings. This forces the user to provide a conforming value for the input control.
Input Control Behavior | ||
Configuration File | ||
.../WEB-INF/applicationContext-cascade.xml | ||
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. |
You can also configure the default value that appears in each type of input control. This is the value that is displayed when the input control is not given any value. By default, the display value is ~NULL~.
Edit the file .../WEB-INF/applicationContext-cascade.xml to change the following entries. The examples in comments show how you can use the default value to suggest a pattern for the input. To make an input control appear blank when no value is given, set value="" (an empty string).
Recommended Comments
There are no comments to display.