• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

indexedListProperty for long arrays

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic