aspose file tools*
The moose likes Struts and the fly likes indexedListProperty for long arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "indexedListProperty for long arrays" Watch "indexedListProperty for long arrays" New topic
Author

indexedListProperty for long arrays

v reddy
Greenhorn

Joined: Oct 15, 2008
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: indexedListProperty for long arrays
 
Similar Threads
String[] field inside a field that is a bean array in a dynavalidator form
struts validation
Validator Checkbox validwhen
Using ADF and clientside form validation without alert box
Using attribute indexedListProperty in field tag in validation.xml