you'll get other replies, but I think it should be

indexedListProperty="stockItems"
property="colour"

sandeep

-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 8:42 AM
To: Struts Users Mailing List
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to