Hi,
-- I'm trying to get simple click events working with gwt-elemental, but I'm facing multiple problem. Maybe someone can help me.
when doing something like the following:
Element el = Browser.getDocument().createElement("button");
el.addEventHandler(Event.CLICK, (e) -> { Browser.getWindow().getConsole().log("Hello World!"); });
I get following error in the chrome console when executing the code:
Uncaught ReferenceError {message: "useCapture is not defined"}
When using the Method including the useCatpure argument it works fine, but then I get a exception when clicking on the Button.
Uncaught TypeError: this$static_0_g$.handleEvent is not a function
What am I doing wrong?
I tried it with useCapture true and false, also with a anonymous class instead of the lamda.
Currently I'm using the GWT 2.8.0-SNAPSHOT version as of 2015-12-15.
I've also a example where that error occurs. Currently it works ony in super dev mode (because in compiled mode the module can not be accessed from javascript (another problem...).
Regards,
Jakob
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