• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Apache Commons Validator: Working With Arrays

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the Apache Commons Validator with JSF and I am trying to use the required validation on an array of strings. My JSF code looks as follows:



My managed bean is the following:




The following is a snippet from my validation xml:



I'm not declaring the validation in the validation xml properly. I'm using RAD and I get a red X next to the field tag stating that "The content of element type 'field' must match '(msg|arg|var)'". Does anyone know what I'm doing wrong? I'm trying to apply the required validation to the String array.

Thanks.
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic