Re: Exporting Instance Methods to Hand-Written Javascript

2012-04-03 Thread Thomas Broyer
On Monday, April 2, 2012 10:26:27 PM UTC+2, Geoffrey Wiseman wrote: > > I have a piece of GWT code that I wanted to invoke from outside > handwritten JavaScript. There's an example shown here under "Calling a Java > method from Handwritten JavaScript": > > https://developers.google.com/web-toolk

Re: Exporting Instance Methods to Hand-Written Javascript

2012-04-02 Thread Alfredo Quiroga-Villamil
At first glance it seems like: "PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;))" takes two arguments, in this case two Strings. The JSNI error seems to indicate that you are not passing the two arguments as per the method signature. I would think that you would end up with somet

Exporting Instance Methods to Hand-Written Javascript

2012-04-02 Thread Geoffrey Wiseman
I have a piece of GWT code that I wanted to invoke from outside handwritten JavaScript. There's an example shown here under "Calling a Java method from Handwritten JavaScript": https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI That example uses a static method; I can