You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Jon Wilmoth <jo...@yahoo.com> on 2003/07/15 23:30:08 UTC

Validation & Indexed properties

I'm trying to validate a collection of objects such
that one of the properties generated html inputs looks
like:

<input type="text" name="assignmentForm[1].startDate"
size="13" value="">

I've defined the "form-validation" doc with the
following field block:

<field property="startDate" depends="date">
	<msg key="errors.invalid.date" name="date"/>
	<arg0 name="date"
key="package.Assignment.startDate.label"/>
	<arg1 name="date" key="${var:datePattern}"
resource="false"/>
	<var>
		<var-name>datePattern</var-name>
		<var-value>MM/dd/yyyy</var-value>
	</var>
</field>

unfortunately, the form doesn't seem to get validated.
 I don't have this issue with non-indexed properties. 
On a related note, the html:errors tag doesn't seem to
have an indexed boolean attribute.  Will I be able to
access the error message specific to that index?

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org