This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

indexedListProperty for long arrays

 
v reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my form i am adding the rows dynamically, each row has 5 to 6 fields. i took those fields as arrays. for example i have familyMemberId field of long type, so i took the Long[] for declaring that field.
i am using the struts validator framework to validate.

this is the code i have in my validation.xml
-----------------------------------------------

<field property="familyMemberId" indexedListProperty="familyMemberId" depends="required,long">
<arg0 key="IncomeEditForm.familyMemberId" />
</field>
------------------------------------------------------
using this code I am able to validate for all the other fields which are of String[] type, but i am unable to validate for Long[], Integer[] types,
i am able to do them by typecasting to string but i am curious why it is not working if it is other than String.

your help is appreciated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic