Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

GWT Polymer.create not working

Horst Müller
5 years ago Dec 11, 2016 7:07pm

Hi

The example ("Using the Element API in Java") here https://github.com/vaadin/gwt-polymer-elements#consuming-web-components-in-gwt suggest using the generated Polymer.create method to create a web component object.

But there is no Polymer#create method (gwt-api-generator --package=PolymerElements/paper-elements --javaDir=src --resourcesDir=src).
The only thing that comes close might be Polymer#createElement. But an Object of type com.vaadin.polymer.paper.PaperButtonElement can not be added by the method RootPanel.get().getElement().appendChild(button), like shown in the example, because the generated PaperButtonElement is not a subclass of com.google.gwt.dom.client.Node.

So is there a proper working way to use the generated classes by the gwt-api-generator?

Thanks and best regards
ano
 

Tim Rijckaert
5 years ago Dec 30, 2016 3:32pm
Tatu Lund
5 years ago Jan 02, 2017 7:55am