naveen gupta wrote:one more quick point
did you define "orgName" field as String or Integer type?
I have it as Integer
You mean defined in the backing bean? It is a String and YES, when I changed this to an Integer field, my trim() space validation stopped working :-(
So now:
123 = passes. Validation never reaches my custom validator
ou812 = fails with message " : 'ou812' is not a number
pattern. " validation never reaches my custom validator.
" " (that should be 9 spaces ) = passes... Never reaches custom validator, shows up as null in backing bean...
" 0 " (zero surrounded by 4 spaces on each side) = fails and, for some reason, DOES reach my custom validator