GWT UIBinding cannot find zero-arg constructor

Posted by aarestad on Stack Overflow See other posts from Stack Overflow or by aarestad
Published on 2010-04-12T17:31:43Z Indexed on 2010/04/12 17:32 UTC
Read the original article Hit count: 440

Filed under:
|

I'm trying my hand at the new GWT 2.0 UIBinder capability, and I have a ui XML that looks like this:

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:my='urn:import:com.mystuff.mypackage'>
<g:VerticalPanel>
      <!-- other stuff -->
  <my:FileUploadPanel.ValidatingFileUpload styleName="field" ui:field="fileUpload" />
</g:VerticalPanel>

ValidatingFileUpload is a non-static inner class contained in FileUploadPanel. It has an explicit zero-arg constructor that simply calls super(). However, when GWT starts up, I get this error:

00:00:18.359 [ERROR] Rebind result 'com.mystuff.mypackage.FileUploadPanel.ValidatingFileUpload' has no default (zero argument) constructors.
java.lang.NoSuchMethodException: com.mystuff.mypackage.FileUploadPanel$ValidatingFileUpload.<init>()

Any idea what might be going wrong here?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about uibinder