Friday, October 29, 2010

Update from 2.1.0 RC1 to 2.1.0 giving Widget XXX not a subclass of GWT's Widget class

Hi

I've just upgraded my Helios from GWT 2.1.0 RC1 to 2.1.0. I have a
ui.xml file which has a reference to a class derived from
com.google.gwt.user.client.ui.Composite. This has been in my project
since 2.0.3 and worked just fine. However after updating from 2.1.0.
RC1 to 2.1.0 I'm getting the above message where XXX is my class name.

What's happening?

Here's the class declaration:

public class WGLCanvas extends Composite implements IWGLCanvas {

....

and here's the ui.xml file:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:mg="urn:import:com.mechnicality.webgl4gwt.client.webgl"> <===
THIS IS THE REFERENCE TO THE CLASS
<ui:style>
.canvas {
background-color: #303030;
width: 99%;
height: 98%;
border: thick inset gray;
}
.info {
color: white;
}

</ui:style>
<g:DockLayoutPanel unit='EM'>
<g:north size='3'>
<g:HorizontalPanel >
<g:InlineLabel ui:field="name" addStyleNames='{style.info}'></
g:InlineLabel>
<g:Label ui:field='description' addStyleNames='{style.info}'></
g:Label>
<g:PushButton ui:field='set3D'>3D</g:PushButton>
<g:PushButton ui:field='setHier'>Hy</g:PushButton>
</g:HorizontalPanel>
</g:north>
<g:center>
<mg:WGLCanvas ui:field='canvas'></mg:WGLCanvas> <===== THIS IS
THE LINE CAUSING THE ERROR>
</g:center>

</g:DockLayoutPanel>


</ui:UiBinder>

The Eclipse problem type is:

Google Web Toolkit UiBinder problem

The module appears to pass the GWT compiler OK

Thanks in advance

Alan


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment