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 at
http://groups.google.com/group/google-web-toolkit?hl=en.