Tuesday, January 5, 2016

Re: MVP and Polymer elements

Maybe you also need to load the webcomponents.js polyfill? https://github.com/vaadin/gwt-polymer-elements/tree/1.2.1.0#add-the-web-components-polyfill

On Tuesday, January 5, 2016 at 8:03:42 AM UTC+1, va...@ant.ee wrote:
Hello all,

       It seems that MVP framework is not compatible with Polymer elements. I have compiled and run mobilewebapp from samples and it went correctly unless I add any polymer element to ui.xml file. What I did:
  1. Added Vaadin reference to MobileWebApp.gwt.xml : <inherits name="com.vaadin.polymer.Elements" />
  2. Added dependeny to pom.xml and enable JSInterop :
     <dependency>
            <groupId>com.vaadin.polymer</groupId>
            <artifactId>vaadin-gwt-polymer-elements</artifactId>
            <version>1.2.1.0</version>
            <scope>provided</scope>
        </dependency>
    and
    <jsInteropMode>JS</jsInteropMode>
  3. Added to MobileWebAppShellDesktop.ui.xml polymer namespace and following code to the header just for test:
    <p:PaperButton raised="true">Test</p:PaperButton>

      After refresh in the browser screen is blank. No errors.  If I remove button reference - UI is build correctly again. Any ideas what may be wrong?


Thanks.

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