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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
GWT Polymer.create not working
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
I second this.
Documentation about this seemingly wonderful library is too scarces tutorials are incomplete (I mean who is using Eclipse these days?) or not updated.
Somebody should really invest time in making the most simple Polymer with Vaadin project from beginning to end.
And please, please(!) be more creative then only showing a simple button.
Have you checked this blog post?
https://vaadin.com/blog/-/blogs/using-vaadin-elements-with-vaadin-framework