Monday, January 4, 2016

MVP and Polymer elements

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