I've been working with GWT 2.4 and trying to send an authorization
exception from server to client whitout success.
1) Server:
A - Raise ReportableException throught report() on my
ServiceLayerDecorator.
B – Send the following JSON to the client:
{"S":[false],"I":[{"F":true,"M":"Não
autorizado","X":"com.google.web.bindery.requestfactory.server.ReportableException"}]}
2) Client:
AbstractRequestContext doesn't enter on processPayload() → if
(response.getGeneralFailure() != null) because it doesn't find key
"F" (but "F" is there, isn't??)
What is wrong?
Is it the right way to treat this kind of exception?
Thank you.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment