-
1. Re: Errai Getting Started Guide and Polymer 1.0
ddadlani Jul 10, 2015 6:52 PM (in response to protoss78)Hello Roman,
I looked at your code, and the issue is that <span id="sidebar" drawer> and <span id="content" main> are not visible to Errai UI, because of how the <paper-drawer-panel> renders these elements.
If you look into how the paper-drawer-panel works, you'll see that it renders your elements as a <div id="drawer"> and <div id="main">. Therefore in this case, the workaround would be to change your data-fields to "drawer" and "main" instead of "sidebar" and "content" in both the template and the Java class, since these ids are enforced by the paper-drawer-panel. But this is a very specific workaround, and it may be better to rearrange the templates to avoid accidentally putting Errai UI data-fields into the shadow DOM of a web component, where they cannot be accessed.
Hope this helps,
Divya
-
2. Re: Errai Getting Started Guide and Polymer 1.0
protoss78 Jul 13, 2015 7:50 AM (in response to ddadlani)Thanks Divya,
Completely overlooked that the paper-drawer-panel overwrites my id.
Thanks for clarifying,
8-) Roman