I have the problem that I cannot access the properties of an Element if it is wrapped inside a PolymerTemplate.
Source Code
Vaadin PolymerTemplate
Polymer Template
Wrapped Element
While a function call to the Wrapped Element via getElement().callFunction("refit") is successfull,
getElement().getProperty("opened", false) will always return false respectivly getElement().getProperty("opened") will always returns null even though the property has another value on the client side.
I know that I need to synchronize the property to the server side, and I tried a lot of variations including the annotation, and adding notify: true to the property, but it simply doesn't work 馃槥.
One potential workaround you could try is to make the wrapper use a two-way binding for the property, i.e. <iron-dropdown opened="{{opened}}">, and then access the value through the PolymerTemplate element instead of the wrapped element.
One potential workaround you could try is to make the wrapper use a two-way binding for the property, i.e.
, and then access the value through the PolymerTemplate element instead of the wrapped element.
Not only a potential workaround, this works. Wonderful! Thank you very much for your help.
Should I leave this issue open?
We can still leave the issue open since there's apparently still some issues with properties on @Id mapped elements that we should investigate further.