Thursday, June 5, 2014

Using GWTDesigner in UIBinder mode to display 3rd party widgets

Hi

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

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment