• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Apache Commons Validator: Working With Arrays

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic