aspose file tools*
The moose likes Struts and the fly likes How to handle ArrayList objects wth validator?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to handle ArrayList objects wth validator??" Watch "How to handle ArrayList objects wth validator??" New topic
Author

How to handle ArrayList objects wth validator??

sameer sood
Ranch Hand

Joined: Dec 05, 2007
Posts: 30
Hi
I have a form design where Form has a number of members
one of them is an arrayList of another object/bean
This is bean is used represents a dynamic part of the page like add another in gmail's attach files
so the question is i want to use validator for that dynamic part
How will this work out
normal form elements validation is working so no probs in config
thanks


Sameer Sood
SCJP 1.5 (93%), SCWCD 1.5 (95%)
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can specify an indexedListProperty attribute when defining field validations in your validator.xml file. This will allow you to define validation for indexed properties.


Merrill
Consultant, Sima Solutions
sameer sood
Ranch Hand

Joined: Dec 05, 2007
Posts: 30
Hi tried using it
but it does not seem to support client side validation
so i wrote my own javascripts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle ArrayList objects wth validator??