Friday, August 2, 2013

Re: Issue 5801: Handle Validation Groups


So now:
How do I propagate ConstraintViolationException from my CustomRequestFactory correctly to the client so that Receiver.onConstraintViolation() is called on the client?


As already said you should customize RequestFactoryServlet to use your own version of SimpleRequestProcessor. SimpleRequestProcessor already has validation code and you would need to adapt this code for the service invocation. Basically you must set violations into the ResponseMessage.

-- J.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment