I have a form with a number of input values. i want to be able to perform multiple validations on each input text. Currently all fields must have a value in, this works fine and a message is displayed if no value is found. I also want to apply a number of other validations such as validate length. i have tried using the code below but the form still submits.
OK. That "validateRequired" threw me. It seems redundant. And, in fact, the Oracle docs indicate that all it does is do the same thing as 'required='true"'. It also might be new to JSF2, since I haven't seen it before.
Speaking of JSF2, I noticed that the underlying Java class (EditableValueHolder) has 2 different validator properties, one for a single validator and one for a collection of validators. No indication of what release the multiple-validator property was added at, though. If you're using a JSF v1 implementation, that might explain things.
subject: Multiple validators for single input text