Exchange datas between modules

2010-05-12 Thread Stefan Ludwig
Hi, how I can exchange datas between two GWT modules? I there a way? Or/ and how can I dispatch an event in another module (like button click)? Thanks Stefan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: Exchange datas between modules

2010-05-12 Thread Stefan Bachert
Hallo, what about? package module1 method1 (Data data) { module2.class2.method2 (data); } when you consider a more complex case, you need to explain what you are going to do?. Stefan Bachert http://gwtworld.de On 12 Mai, 08:43, Stefan Ludwig tapir0...@gmail.com wrote: Hi, how I can

Re: Exchange datas between modules

2010-05-12 Thread djd
No easy way to do this, One way is to use JSNI, write to DOM in one module, read in the 2nd. The problem here is serialization of these 2 events (read write) - meaning u should be sure the data was actually written before reading them. Another way is to set a callback to DOM that listens to data

Re: Exchange datas between modules

2010-05-12 Thread harjit.singh
Think about it this way. Modules are nothing but single HTML pages. If one were to pass data between different HTML pages how would one do it. I have used Session and or Cookies for it. Again my dataset was very small. There are limitations on how much data you can store in a cookie. Other

Re: Exchange datas between modules

2010-05-12 Thread lineman78
See GWT Exporter. This allows you to inject unobfuscated javascript functions so you can call them through JSNI from the other module. If you don't want to include exporter, all you have to do is inject the functions through JSNI on module load. DISCLAIMER: this is untested, you might have to