- simultaneously/concurrently on the same page? ⇒ use JSNI or gwt-exporter to export methods so that module A can call into module B (and vice versa); use JavaScriptObjects to pass objects (rather than just primitives and strings).
- simultaneously/concurrently in two pages? ⇒ use localStorage events or a shared WebWorker, or possibly postMessage, in browsers that support any of them (see http://stackoverflow.com/q/2236828/116472), or you'll have to use server-side shared state (session)
- sequentially in two pages? ⇒ pass info through the URL (query-string or hash –e.g. history/place token)
On Monday, January 28, 2013 2:47:12 PM UTC+1, Clement wrote:
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
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.
No comments:
Post a Comment