Thursday, June 2, 2016

Re: Having trouble with GWT JSNI

Hi Thomas,

Thank you *so* much (I'm kicking myself because it was such a simple error!).

I don't suppose you know how I could call an external JavaScript function from inside the GWT project? I cannot find any examples online that show this.

Thanks again,
Andrew

On 02/06/16 14:42, Thomas Broyer wrote:


On Thursday, June 2, 2016 at 3:36:51 PM UTC+2, Andrew Ferguson wrote:
Hi Thomas,

Thanks for the reply. I replaced my JSNI with the one you provided, and changed the signature to '*', but it still failed to compile. I tried changing the signature to 'I' in case that made any difference, but again it failed with the same error.

The error I am getting is:
[ERROR] Errors in 'file:/home/andrew/eclipse/workspace/circuitjs1/src/com/lushprojects/circuitjs1/client/CirSim.java'
            [ERROR] Line 105: Referencing class 'com.lushprojects.curcuitjs1.client.CirSim': unable to resolve class

There's a typo in the JSNI: circuitjs1 vs. curcuitjs1 ;-)
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment