Re: how to post & handle RequestFactory server warnings/errors?
Could you tell me if you got it working?
I dont' use Objectify just RF + Editors my custom DAO for Hibernate.
I do:
MyProxy p = context.create(MyProxy.class);
....
context.persist(p);
context.fire(new Receiver(...))
when persist() in DAO throws RuntimeException I let the
DefaultExceptionHandler take care of it. In response returned to
client I see
{"O":......
"I":[{"M":"Server Error: boo error peristing object","F":true}],"S":
[false]}
My receiver never executes onFailure as
AbstractRequestContext.onTransportSuccess response.getGeneralFailure()
always returns null. What am I doing wrong?
I will appreciate any comments
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home