This content has been marked as final.
Show 1 reply
-
1. Re: Creating DOM Elements on the fly ! (ManagedInstance<T extends JavaScriptObject>)
mbarkley Jan 5, 2017 10:17 AM (in response to mjm.ent)Hi Mathieu,
Unfortunately, as you've discovered, GWT does not generate classes for JavaScriptObjects the same way it does for normal Java types. This breaks dynamic lookup of any types extending JavaScriptObject.
Currently we have no solution for this. I'd recommend creating a factory class that you can inject (ex. ImageFactory) that uses the DOM or GWT API to create elements.
Cheers.