You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/09/23 22:38:22 UTC
DO NOT REPLY [Bug 23370] New: -
Unable to validate indexed properties
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23370>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23370
Unable to validate indexed properties
Summary: Unable to validate indexed properties
Product: Struts
Version: 1.1 Final
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Blocker
Priority: Other
Component: Validator Framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: pierre.lessard@promutuel.ca
Hi!
Got a struts form like this:
============================
<html:text property='<%= "theForm.anArray[" + indexId + "].aDateField " %>' >
</html:text>
or, if you prefer:
<html:text property="theForm.anArray[x].aDateField" >
</html:text>
where x is a variable, used inside an iteration.
which as the following validation configuration:
================================================
<field property="aDateField" indexedListProperty="anArray"
depends="required,date" page="55">
<arg0 key="dateField.text"/>
<var>
<var-name>datePatternStrict</var-name>
<var-value>yyyy-MM-dd</var-value>
</var>
</field>
The validator has a strange behevior... sometimes it works, sometimes not: it's
like it does not receive the value of that field and says that the date is
required while it's there.
It does also the same things with integer-type validations...
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org