This content has been marked as final. Show 6 replies
Regarding regular expressions validations:
Thanks for the links.
I am able to apply the field level validation but the problem is using autosubmit=true cause a request to server. This is sometimes causing gap after tab out and a page refresh. So i just want to know if it is right to use autosubmit when there are many fields in the form to be validated as the user tab out or is there any other way? Is java script suggested for such cases?
Thanks for the reply.
I need some guidline on the best way to do our validation. We will be getting our data from WebService data control. No application module data controls at all. We need validation on the fileds on submitting the form. Can you please suggest whats the right way of doing this. Should i go with <af:validateRegExp> like tags or should i write code in manages bean and use the validator attribute to link. Our validation are simple like matching Regular Exp or comparing two fileds. We will need same validations to be used on different modules of proj as well.
Thanks for all your help.
For cross field validation, that's most easily done at the JSF bean level. It will require a round trip to the server to perform the validation though (rather than just validated at the client level). Is that an issue? There's an alternative solution but if you're not worried about round trips, go with the simple solution.