I'm trying to display smartGWT widgets in UIBinder mode.
I'm using https://code.google.com/p/uibinding-smartgwt/ to do this and I had to modify the existing code to get the GWTDesigner to compile things correctly.
Now I'm getting this error:
java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()
Stack trace:
java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:558)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
None of the SmartGWT controls that were wrapped by the uibinding-smartgwt code use the .initWidget() or .setElement(), So it is an omission by the authors and this could never work, or am I doing something wrong?
Also since SmartGWT controls are different from GWT controls (they do not inherit from them), is the process in UIBinder ALWAYS depending on underlying GWT Control?
I have seen examples of composite GWT Controls, but not complete 3rd party controls.
Regards
Tek
I'm using https://code.google.com/p/uibinding-smartgwt/ to do this and I had to modify the existing code to get the GWTDesigner to compile things correctly.
Now I'm getting this error:
java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()
Stack trace:
java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:558)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
None of the SmartGWT controls that were wrapped by the uibinding-smartgwt code use the .initWidget() or .setElement(), So it is an omission by the authors and this could never work, or am I doing something wrong?
Also since SmartGWT controls are different from GWT controls (they do not inherit from them), is the process in UIBinder ALWAYS depending on underlying GWT Control?
I have seen examples of composite GWT Controls, but not complete 3rd party controls.
Regards
Tek
Comment