Saturday, April 29, 2017

Re: gwt elemental newbie

Elemental 1 and 2 are a bit different, both exposes the "whole" HTML5 API, elemental 1 using jsni and elemental 2 using jsinterop. But elemental 1 has other tools that look like elemental 2 is not going to include like shared json implementation and hight-performance collections. And finally and most important, elemental 2 is pretty unstable right now so it probably will break your compilation on each alpha release as you have seen in the branflake code. Just update to make it work.

More info about elemental 1 here http://www.gwtproject.org/articles/elemental.html.

On Sat, Apr 29, 2017 at 3:51 PM <gwttechg@gmail.com> wrote:
Hello,

I am starting to learn gwt elemental.
I've started with the code here: https://gist.github.com/branflake2267/8e4b9d4f2dc594fe21a125155516ec97

but there are some compile time errors. See attached screenshot with comments on the lines with errors, and my crude attempts at workarounds.

The workarounds seem to fix the compile time errors, but when running the app there is a runtime exception at this line of code:

HTMLDocument document =  new HTMLDocument(); //Error-   Illegal constructor.

Thanks in advance for your help

--
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.

--
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