The method with JSNI seems to be recommanded.
I was wondering if this one is also acceptable:
1) Take the html file of the module
2) Insert a DIV element with the wanted value to pass to gwt: <DIV
id="div_id" value="div_value"/>
3) Get the value of the DIV element in the onModuleLoad:
com.google.gwt.dom.client.Document doc =
RootPanel.getBodyElement
().getOwnerDocument();
Element el = doc.getElementById(div_id);
Object obj = el.getAttribute("value");
On 3 déc, 16:04, GWT Newbie <[EMAIL PROTECTED]> wrote:
> Yes. Looks like that.
>
> I will read it more carefully this night.
>
> Thanks.
>
> On 3 déc, 14:10, gregor <[EMAIL PROTECTED]> wrote:
>
> > You mean this sort of thing?
>
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---