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 approach would be to write a server side class where you pass the data in one page and retrieve it in JSON format from the other page and then make a object out of it. Again it depends on how much data you have.
Hope this helps - Harjit On May 12, 10:36 am, djd <[email protected]> wrote: > 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 :) (in > the module that needs reading). And write with the 2nd module (after > you have set the callback). > > Or you could eliminate these indirect methods and use a 3rd module > that connects those 2 :) - which I actually suggest. > > Regards > > > > > > > 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 Bacherthttp://gwtworld.de > > > On 12 Mai, 08:43, Stefan Ludwig <[email protected]> wrote: > > > > 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 email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > 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 > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - > > - Show quoted text - -- 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.
