call static gwt method from js file?

42 views
Skip to first unread message

Dennis Haupt

unread,
Nov 23, 2011, 11:30:23 AM11/23/11
to google-we...@googlegroups.com
is there any way to call a static method of one of my gwt client classes from pure js code? i'm not talking about calling a method from inline javascript inside the gwt class, that works fine. the gwt class and the calling js method are completely separate at compile time. at runtime, the gwt has access to all the js code.

i'm a javascript noob, so maybe i'm missing an obvious solution.


Paul Robinson

unread,
Nov 23, 2011, 11:35:36 AM11/23/11
to google-we...@googlegroups.com
Take a look at gwt-exporter:
http://code.google.com/p/gwt-exporter/

Paul

Thomas Broyer

unread,
Nov 23, 2011, 12:01:44 PM11/23/11
to google-we...@googlegroups.com

Dennis Haupt

unread,
Nov 23, 2011, 1:00:15 PM11/23/11
to google-we...@googlegroups.com
Am 23.11.2011 18:01, schrieb Thomas Broyer:
> See http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/jJyywp5db8AJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

perfect

--

David Stubbs

unread,
Nov 23, 2011, 11:50:59 AM11/23/11
to google-we...@googlegroups.com
Hi Dennis,

Look at http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html and scroll down to the section "Calling a Java Method from Handwritten JavaScript". That has the code example you are looking for.

Regards,

David.

On 23 November 2011 16:30, Dennis Haupt <d.ha...@googlemail.com> wrote:
is there any way to call a static method of one of my gwt client classes from pure js code? i'm not talking about calling a method from inline javascript inside the gwt class, that works fine. the gwt class and the calling js method are completely separate at compile time. at runtime, the gwt has access to all the js code.

i'm a javascript noob, so maybe i'm missing an obvious solution.


--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
--
David Stubbs
_____________________________________________________________________________

Genial Genetic Solutions Ltd
W: www.genialgenetics.com          T: +44 (0)1244 404970         F: +44 (0)1244 404971
_____________________________________________________________________________
                               
Please note our correspondence address as follows:

Genial Genetic Solutions Ltd
P.O. Box 3751
Chester
CH1 9UF
U.K.

Please ensure that your records are updated to reflect these details - Thank You.


The information contained in this e-mail may be confidential. It is intended only for the use of the named recipient.

If you are not the named recipient please delete this e-mail as any disclosure, reproduction, distribution or other dissemination or use of the information contained within is strictly prohibited.
_____________________________________________________________________________
Please be aware that all emails relating to service and support matters should be 
sent to Genial's central support email address - sup...@genialgenetics.com in 
order to ensure that they receive prompt and coordinated attention from our 
support teams.  Please note that emails relating to service and support matters 
should not be sent to individual members of the support team.
In following this centralised support process you are helping to ensure that we 
coordinate and deliver the fastest and most appropriate continual service to you. We 
appreciate your compliance with this policy and we will assist you as soon as 
possible with any service or support-related matter.
_____________________________________________________________________________

Reply all
Reply to author
Forward
0 new messages