• Post Reply Bookmark Topic Watch Topic
  • New Topic

validating nested lists in validation.xml - struts

Krikor Krumlian
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>

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"/>

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
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!