I use the validation in a standalone application. Seems that other field
type check like double, integer, mask seem all work but not date.I try to
validate a date field in the bean.
Here is part of my validation.xml:
<field property="demandDate" depends="required,date"></field>
<var>
<var-name>datePattern</var-name>
<var-value>MMddyyyy</var-value>
</var>
</field>
demandDate field has the value 09142003
I got invalid date report, which I don't understand. I set debug on
fieldChecks
String datePattern = field.getVarValue("datePattern");
String datePatternStrict = field.getVarValue("datePatternStrict");
field.getVarValue("datePattern") always returns me a null value. I tried
datePatternStrick in validation.xml; but again, field.getVarValue
("datePatternStrick") also gave me a null value. How should I set date
check in my validation.xml?
Please advise.
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]