I am trying to use the RequestFactory and Editor frameworks together. I have it working successfully for requests that finish successfully or that result in constraint violations. However, whenever there are server errors and my Receiver.onFailure(ServerFailure) method is called I am not able to reuse my proxy object.
If I do nothing in the onFailure method other that setting the some error message in the ui and then try to fire another request using the same proxy object I get the AutoBean has been frozen error message. When there are contraint violations I can successfully fire another request with the same proxy object. After digging into the code I found the doFire method in AbstractRequestContext. Inside this method it creates an anonymous TransportReceiver object which handles the response from the server. TransportReceiver.onTransportSuccess(String payload) handles an response that successfully hit the server. If response.getGeneralFailure() != null or there are constraint violations AbstractRequestContext.reuse() is eventually called which unfreeze any autobean entities that were apart of the request and unlocked the request context. However on errors that aren't generalFailures reuse() is never called. This means that this instance of the autobean can never be used again without getting the Autobean is frozen error. Has anyone else run into this issue. If so is there a workaround for it. Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
