You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Lowe <ma...@boxstuff.com> on 2004/03/30 15:41:53 UTC
validator indexed properties
I've heard it can be done , read the presentations, brought the
t-shirt, brought another tee shirt for my gran but does using validator
of indexed properties works.
<html:form action="/save.do">
<c:forEach var="stockItem" item="${productForm.stockItems}">
<html:text name="stockItem" property="colour" indexed="true" />
</c:forEach>
<html:submit />
</html:form>
..
<field property="colour" indexedListProperty="stockItem"
depends="required">
<arg0 key="Colour" resource="false"/>
</field>
I'm validating other fields so its not that i haven't validate="true"
or anything like that. I've bee googling and seen many questions with
few answers. Is this a book writer's conspiracy or does this work?
The other alternative explantion is that its not for nested objects but
rather for indexed fields but the attribute indexedListProperty=""
leads me to believe otherwise.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org