MyEclipse: Generate Validation code for Spring Scaffolding vrahul14 - Nov 19, 2010 - 07:32 AM Post subject: Generate Validation code for Spring Scaffolding
Thanks again for the great product.
Wanted to check if this was possible to be implement Validation (based on Database schema like Required, Number, Date ...) as part of code generation.
The current code generated does not have any kind of Form Validation on Create or Edit pages. Wanted to check if it's possible to add "JSR 303" based validations using API like Hibernate Validator as part of form generation. Currently when i submit the form for the field which need values, it's generation Exception Page.
Thaks
Rahuldavemeurer - Nov 19, 2010 - 02:50 PM Post subject: RE: Generate Validation code for Spring Scaffolding
Hello Rahul,
Quote:
The current code generated does not have any kind of Form Validation on Create or Edit pages.
There should be validation on primary keys, integers, and date types in the create and edit pages. In Spring MVC and Web Flow, this is handled by Spring Javascript. Flex uses action script to do the validation. Let me know if there is a particular type that isn't validated on the UI screens.
Quote:
...it's possible to add "JSR 303" based validations using API like Hibernate Validator...
I'll ensure this is part of our feature requests. Thanks for submitting it!
Kind regards,
Davevrahul14 - Nov 19, 2010 - 02:56 PM Post subject: RE: Generate Validation code for Spring Scaffolding
Thanks Dave.
"JSR 303" based validations will be awesome, since that will make it harder to get through even by disabling Javascript on Browser side.