MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Feature Requests
View previous topic Printable version Log in to check your private messages View next topic
Author Message
vrahul14
Post subject: Generate Validation code for Spring Scaffolding  PostPosted: Nov 19, 2010 - 07:32 AM



Joined: Nov 19, 2010
Posts: 5

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
Rahul
 
 View user's profile Send private message  
Reply with quote Back to top
davemeurer
Post subject: RE: Generate Validation code for Spring Scaffolding  PostPosted: Nov 19, 2010 - 02:50 PM



Joined: Jan 20, 2010
Posts: 191

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,
Dave
 
 View user's profile Send private message  
Reply with quote Back to top
vrahul14
Post subject: RE: Generate Validation code for Spring Scaffolding  PostPosted: Nov 19, 2010 - 02:56 PM



Joined: Nov 19, 2010
Posts: 5

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.

Thanks
Rahul
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits