Re: Passing a javascript object as parameter to java method

2009-07-29 Thread rohit a
Hi, Great Idea. Thanks a lot. Bye --~--~-~--~~~---~--~~ 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,

Passing a javascript object as parameter to java method

2009-07-28 Thread rohit a
Hi, I need to pass a javascript object that i get from a remote method call to seam to the java method in gwt. Right now i am trying to pass the javascript object to a method which takes a JavaScriptObject as parameter. I am unable to call the methods in my js object with the

Re: Passing a javascript object as parameter to java method

2009-07-28 Thread olivier nouguier
Hi Did you follow those instruction ? http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface HIH On Tue, Jul 28, 2009 at 8:26 AM, rohit a attamro...@gmail.com wrote: Hi, I need to pass a javascript object that i get from a remote method

Re: Passing a javascript object as parameter to java method

2009-07-28 Thread rohit a
Yes i was able to do it after reading overlays. It was tedious to write a wrapper for every javascript object extending the JavaScriptObject. Anyways thanks for the quick reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Passing a javascript object as parameter to java method

2009-07-28 Thread Jason Essington
One sort of sneaky trick that could be helpful with overlay types would be to do something like: public native String getStringField(String fieldName)/-{ return (fieldName != null this[fieldName] != undefined) ? this[fieldName] : null; }-*/; It isn't as convenient as getThis() or