I'm new with GWT
and I'm stuck to an issue where to put the validation methods some of them requires asynchronous calls to database my project consists of 2 packages :
client side
where the interface and services classes
server side
where entities and serviceImpl classes
Do I have to make a third package and place them on it ex: shared ?? or It's Ok to just place them on the client interface classes ex:Login.java
GWT 2.5 comes with support for JSR-303 Bean Validation.
See link: https://developers.google.com/web-toolkit/doc/latest/DevGuideValidation?hl=fr
It would be great to completely share the validation code in server and client, but run it in both ends.
As all said ,good things in client side validation
:
Immediate feedback
without server visit .
If client side validation
is used, server side validation
is still needed
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.