Wednesday, December 28, 2011

Re: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

Well, one thing to be aware of is, that RequestContext.edit(), returns a new, mutable version of the proxy, rather than unlocking the one you pass in, so instead of :

ctx.edit(gdp); 
gdp.setName("xxx"); 

It should be, 

gdp2 = ctx.edit(gdp); 
gdp2.setName("xxx");

That still doesn't explain why you are getting the error though, because when you create() a proxy on the client side, its already mutable, so you don't in fact need to call edit() on it at all. (and doing so should be harmless afaik) 


--
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