Monday, August 24, 2015

Re: GWT & Polymer TODO sample

Hi Christian,
I'm interested on your alternative strategy, I however don't use Gradle, and I've tried to convert it to a Maven project. It can be found here  https://github.com/cristcost/todo-gwt-polymer

It does not work yet:
if I import it in Eclipse and run,  SuperDevMode complains that Component.java and TodoListType.java use lambda (even if I do use the option "-sourceLevel 1.8" on running SuperDevMode)

If I run it with maven and jetty (mvn clean install jetty:run) I get a weird error on the Browser Javascript Console: "Uncaught TypeError: Cannot read property '$_nullMethod' of null" (Note I removed the "src/main/webapp/Todo/Todo.nocache.js" file in order to run without SuperDevMode)...

Do you or anyone else have any suggestion for me to get  it working?

Thanks,
Cristiano

PS. I'm using a GWT 2.8.0-SNAPSHOT compiled from the master branch this morning



Il giorno dom 23 ago 2015 alle ore 22:53 Christian Bauer <christian.bauer@gmail.com> ha scritto:
I've been taking a break from my main application, and worked on an alternative strategy integrating Polymer and GWT 2.8 with JSInterop, you can find the result here: https://github.com/christianbauer/todo-gwt-polymer

This code is very close to Polymer API and JavaScript, type-safety is therefore awful. A more powerful @JsFunction would be needed to scale this to more code.

However there is no @JsExport in the code and with a few "minor" improvements, Polymer could be a great View language for GWT.

Cheers,
Christian

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment