Dear salk31,

thank you for your answer. 
I have found few examples for this. Most of them suggest to override the 
ServiceLayerDecorator its validate() method.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6685#c10


class MyDecorator extends ServiceLayerDecorator {

@Override
public <T> Set<ConstraintViolation<T>> validate(T domainObject) {
        return jsr303validator.validate(domainObject, 
MyValidatorGroup.class);
    }
}

I still have one open question:
How do i get/create the jsr303validator object?

Could you (or someone from the group) please provide the full code example?

As previously posted I am using HibernateValidator implementation.

Thank you in advance!

Nermin




Am Freitag, 19. Juli 2013 19:27:40 UTC+2 schrieb salk31:
>
> I think you will have to fiddle with ServiceLayerDecorator. In there you 
> can choose what groups you want to validate against and when.
>
> NB RequestFactory validates each instance in turn so gets called many 
> times... It doesn't like @Valid
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to