Hi,
Hi Blaze,
Can I use your idea in the below situation
I have a Search component which renders the search box.
This Search component is used by module A and also by module B.
Can I use the setter and getter method of native javascript in the search
box component and invoke it in the same component when it is required.
Will this way of using Javascript Native object work,
Please share me your thoughts..
Also please provide me a sample of creating JavaScriptObject.
Thanks
Clement Amarnath
On Monday, January 28, 2013 7:51:57 PM UTC+5:30, Blaze wrote:
>
> Hi,
>
> just like Thomas said, u can use any of this ways dipending on the req.
>
> I had a req. where the two modules run in the same window and I used a
> JSNI methods
>
> module A
>
> public static native void setMessage(JavaScriptObject message) /*-{
> $wnd.myMessage = message ;
> }-*/;
>
> public static native JavaScriptObject getMessage() /*-{
> return $wnd.myMessage;
> }-*/;
>
> module B
>
> public static native void setMessage(JavaScriptObject message) /*-{
> $wnd.myMessage = message ;
> }-*/;
>
> public static native JavaScriptObject getMessage() /*-{
> return $wnd.myMessage;
> }-*/;
>
> Hope this helps
> B
>
>
> Am Montag, 28. Januar 2013 14:47:12 UTC+1 schrieb Clement:
>>
>> Hi All,
>>
>> I have the below requirement.
>> Currently we have two modules a.gwt.xml and b.gwt.xml and I have a
>> scenario where the text entered in module A to be passed to module B.
>> I don't want to prefer the Cookie and Server side Session options.
>>
>> Please share your ideas on how to pass messages between the modules.
>>
>> Thanks in Advance
>> Clement Amarnath
>>
>>
--
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].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.