Validation in RequestFactory is done after the object graph has been reconstructed but before any service method is invoked. It's the only place where validation errors will lead to onConstraintViolations being called back on the client side (for all the Receivers attached to the RequestContext). When service method invocations are processed, each one can succeed or throw, independently of the others, and will cause the onSuccess or onFailure of the Receiver _for that particular invocation_ (the one passed to the to() or fire() method of Request –but not the fire() method of RequestContext!–) to be called back. FYI, the global Receiver's (the one passed to the fire() method of RequestContext) onFailure method is only called when the object graph cannot be reconstructed or serialized on the server-side; in that case, the onFailure of all Receivers is also called. In any other case (except onConstraintViolations), onSuccess will be called (even if all invocations failed).
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/54TroGM_DioJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
