Friday, September 30, 2011

RequestFactory and JSR 303 validator behavior customization

Hi all,

My project has some Entities stored in Mysql and we are using Hibernate Validator as JSR 303 implementation.

My problem is that GWT ServiceLayerDecorator considers that any operations on the database need a complete validation on the objects, even delete (in my case).

Maybe it would be nice if we had the possibility to choose "FOR A GIVEN METHOD" declared in a RequestContext to skip the validation and just execute the method, bypassing the validation.
(maybe with a @ValidatorPolicy(ValidatorPolicy.SKIPPED))

Even if I'm conscious that my DB should not be invalid toward my validators,it is very embarrassing because it need a intervention directly on the DB (validators block the GWT user and even a Administrator could not repair the damages done in the DB through my app).

What do you think about this ?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment