JSInterop sample / tutorial?

2569 views
Skip to first unread message

marian lux

unread,
Jan 27, 2015, 4:30:55 PM1/27/15
to google-we...@googlegroups.com
Is there a working JSInterop sample (e.g. project on github) online or an article how to get started? It is part of the current gwt 2.7 release but I could not find a working project or article. It would be nice if the gwtproject.org site will contain any tutorial / article too.

E.g. I found some google group entries about JSInterop and this project:
https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
But the maven does not work any more and the google group entries don't describe a how-to.

Juan Pablo Gardella

unread,
Jan 27, 2015, 4:49:20 PM1/27/15
to google-we...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

marian lux

unread,
Jan 27, 2015, 5:21:43 PM1/27/15
to google-we...@googlegroups.com
Thank you.

How to run this projects (ideally in eclipse)?






Am Dienstag, 27. Januar 2015 22:49:20 UTC+1 schrieb Juan Pablo Gardella:
On 27 January 2015 at 18:30, marian lux <mlu...@gmail.com> wrote:
Is there a working JSInterop sample (e.g. project on github) online or an article how to get started? It is part of the current gwt 2.7 release but I could not find a working project or article. It would be nice if the gwtproject.org site will contain any tutorial / article too.

E.g. I found some google group entries about JSInterop and this project:
https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
But the maven does not work any more and the google group entries don't describe a how-to.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

marian lux

unread,
Jan 28, 2015, 3:12:59 AM1/28/15
to google-we...@googlegroups.com
For example I can't run the project

https://github.com/workingflows/gwt-jscore.git

with
mvn gwt:run




[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-beta1:run (default-cli) on project jscore: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-beta1:run are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException


I think the pom.xml is outdated.

Also tried to replace the pom.xml with
<gwt.version>2.7.0</gwt.version>
<gwt.plugin.version>2.7.0</gwt.plugin.version>

But I am getting the same error.

Can you provide a working example with how-to execute / it?
THX

marian lux

unread,
Jan 28, 2015, 3:03:32 PM1/28/15
to google-we...@googlegroups.com
This project works for me

https://github.com/cdigiano/polymergwt

Thanks for the interesting talk on GWT.create ;)

Drew Spencer

unread,
Jun 5, 2015, 9:41:08 AM6/5/15
to google-we...@googlegroups.com
I get the same error. Difficult to look for help as Codehaus is closing down.

Odd as in my other projects I never specify that parameter.

Cristian Rinaldi

unread,
Jun 8, 2015, 7:29:10 AM6/8/15
to google-we...@googlegroups.com
Estimated
   I have the outdated projects these days will change the versions and write a tutorial.

Drew Spencer

unread,
Jul 20, 2015, 10:41:41 AM7/20/15
to google-we...@googlegroups.com
Any news on this buddy? I would like to learn JsInterop. Any help or pointers appreciated

Drew

mark kevin ringor

unread,
Nov 24, 2015, 9:39:26 AM11/24/15
to GWT Users
Any updates about the starting guide of JSInterop?

Jens

unread,
Nov 24, 2015, 9:47:20 AM11/24/15
to GWT Users

Any updates about the starting guide of JSInterop?


-- J. 

mark kevin ringor

unread,
Nov 24, 2015, 9:59:53 AM11/24/15
to GWT Users
Thank you very much Jens

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/SLNo6XKfNS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

Cristian Rinaldi

unread,
Nov 25, 2015, 6:26:53 AM11/25/15
to GWT Users
You can see this projects:
  https://github.com/workingflows/gwt-jscore (branch): NewJsInterop have support for new annotations. 

  

El martes, 27 de enero de 2015, 18:30:55 (UTC-3), marian lux escribió:

Ming-Yee Iu

unread,
Nov 28, 2015, 10:28:54 PM11/28/15
to GWT Users
Is the @JsFunction stuff idempotent? (I'm not sure what the correct term to use is.)

The main thing is, does this work?

   @JsFunction Function { ... }

   Function listener = (evt) => { evt.preventDefault(); };

   doc.addEventListener("click", listener);

then later on

   doc.removeEventListener("click", listener);

It looks like it should be fine, but I just want to make sure.

Also, I sometimes had problems with the old JSNI stuff when using optional parameters in JS. I'm not sure why, but sometimes GWT would complain. Does that work ok in JsInterop?

   doc.addEventListener("click", listener);
vs.
   doc.addEventListener("click", listener, false);

I know with GWT Elemental, it would always complain about the first case.

-Ming
Reply all
Reply to author
Forward
0 new messages