Hi,
I'm trying to do date validate on a list of indexed items.
e.g.
item ...... date
-----------------
1 ...... <input box>
2 ...... <input box>
...
The entry in my validation.xml is:
<field property="localizedDueDate" depends="date" indexedListProperty="actions">
<arg0 key="validate.label.date" />
<arg1 key="validate.label.date" />
<var>
<var-name>datePatternStrict</var-name>
<var-value>MM/dd/yyyy</var-value>
</var>
<arg2 key="validate.label.date" />
</field>
The current behaviour is:
item ....date
-----------------
1 ...... 01/01/2005
2 ...... <empty>
Validation PASSES
item ....date
-----------------
1 ...... 01/01/2005
2 ...... invalid date formal
Validation FAILS
item ....date
-----------------
1 ...... <empty>
2 ...... 01/01/2005
Validation PASSES
item ....date
-----------------
1 ...... <empty>
2 ...... invalid date formal
Validation PASSES ===> Undesirable!!!!
Any help would be greatly appreciated.
WC
I'm trying to do date validate on a list of indexed items.
e.g.
item ...... date
-----------------
1 ...... <input box>
2 ...... <input box>
...
The entry in my validation.xml is:
<field property="localizedDueDate" depends="date" indexedListProperty="actions">
<arg0 key="validate.label.date" />
<arg1 key="validate.label.date" />
<var>
<var-name>datePatternStrict</var-name>
<var-value>MM/dd/yyyy</var-value>
</var>
<arg2 key="validate.label.date" />
</field>
The current behaviour is:
item ....date
-----------------
1 ...... 01/01/2005
2 ...... <empty>
Validation PASSES
item ....date
-----------------
1 ...... 01/01/2005
2 ...... invalid date formal
Validation FAILS
item ....date
-----------------
1 ...... <empty>
2 ...... 01/01/2005
Validation PASSES
item ....date
-----------------
1 ...... <empty>
2 ...... invalid date formal
Validation PASSES ===> Undesirable!!!!
Any help would be greatly appreciated.
WC