I just found that this is not problem with GWT. I am using SmartGWT. Problem is one of its classes.
Thank you Rajesh On Mar 12, 8:06 am, Rajesh Akkineni <[email protected]> wrote: > I have a problem with accessing the changes done in a native method of > Overlay Type. > > class A extends JavaScriptObject{ > > public native void toB(String b)/*-{ > this.b=b;}-*/; > > public native String getB()/*-{ > return this.b; > > }-*/; > } > > This this example 'toB' method and 'getB' are called from two > different places on same A object. But the values set in toB are not > available in getB. How is it possible? Other properties which are > present A before these methods are called are still available in both > places. But any new properties are not available. > > Only explanation is that when javascript returns an Overlay type to > Java it wraps in a new object that is derived form old object. Am I > Correct? Is there any way to overcome this limitation. (I have not > tested in web mode) > > Thanks for any help > Rajesh A --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
