How do you (if you) manage client side validation with grails ? Do you use a plugin or do you mirror your constraints using a javascript framework ? Cheers
相关问题
- Grails External Configuration. Can't access to
- grails unit test + Thread
- JMS Job queue with Grails
- Grails: SpringSecurity roleHierarchy not working a
- Grails 2.1.1 - How to develop a plugin with an Ast
相关文章
- Grails: How to make everything I create Upper Case
- Grails and Quartz: Bad value for type long
- Sending JSON to javascript on GSP
- Grails application is not found after updating to
- How to save to a file system directory in Grails
- Groovy can't compile the code from a solution
- Grails: what are the main issues (and his solution
- How to use jasperreports subreports with grails ja
I haven't used them personally but these two plugins might help you out:
http://grails.org/plugin/javascript-validator
http://www.grails.org/plugin/remote-constraints
On Grails projects that I've been a part of, We haven't used a plugin but rather a mashup of javascript plugins and custom validators (jQuery plugins, Prototype, Dojo, etc.) to achieve the client side validation. Its handy to provide instant field-level validation on the client.
As leebutts said, The source of these plugins are open. Why not consider enhancing one(or both) of these plugins to achieve what you need and contribute that back to the community?
Might be worth checking out the new constraints plugin. With it Constraints become a Grails artefact, and might make this job easier.