GWT-Ext migration to native gwt. Is JavaScriptObjectHelper analog in native gwt v2.4?

StackOverflow https://stackoverflow.com/questions/7651743

  •  06-02-2021
  •  | 
  •  

Question

I am working on migrating a large GWT application from gwt-ext to native GWT v2.4. In gwt-ext there is a class called JavaScriptObjectHelper. Is there a corresponding class in the native gwt libraries?

Was it helpful?

Solution

Some methods from JavaScriptObjectHelper are available elsewhere: JavaScriptObject.createObject() and createArray(), JsArrayand friends, Element's methods (getProperty, getAttribute, etc.), and of course Boolean.valueOf() and similar methods on Integer, Float, Date, etc.

A few other methods have no equivalent though: apply, arrayConvert, convertMapToJavaScriptArray, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top