Issue in localising client side javasctip validation error messages of "LiveValidation" in Seam
posted 6 years ago
1. Are there any other "best" approach/framework to handle client side validation at the client side in seam appliaction ?
2. How do we access and use the Hibernate Validation constraints values in the LiveValidation so that the validation requirements are defined at only one place as much as possible.
For eg: we define on the entity: @Length(min=5, max=10) . Now, I want to use the values 5 and 10 and also if possible map the "@Length" to the corresponding validator function of LiveValidation
I am including the "liveValidation.js" in the template.xhtml and in the individual xhtml pages I add the validation as below:
<h:form id="course" styleClass="edit">
Please suggest as this will be very useful.
Each one of us, teach(at least) one. <br />-Mahatma Gandhi