This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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