permaculture playing cards*
The moose likes Struts and the fly likes validating nested lists in validation.xml - struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validating nested lists in validation.xml - struts" Watch "validating nested lists in validation.xml - struts" New topic
Author

validating nested lists in validation.xml - struts

Krikor Krumlian
Greenhorn

Joined: Sep 24, 2004
Posts: 9
Hello All
I'm using validation.xml to validate some properties in beans so to do a simple validate we do :

<form name="someForm">
<field property="knumber" depends="required">
<arg0 key="someForm.knumber.label"/>
</field>
</form>

that's straight forward , Now if we have a list as one of the properties then
we do this

<field property="nestedprop" indexedListProperty="programs" depends="required">
<arg0 key="someForm.knumber.label"/>
</field>

Now that works too , The question what if we have a nested list in the above list what do we do ? Any ideas ? thank you
 
wood burning stoves
 
subject: validating nested lists in validation.xml - struts