Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle ArrayList objects wth validator??

 
sameer sood
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sameer sood
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi tried using it
but it does not seem to support client side validation
so i wrote my own javascripts
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic