Now I have

    @UiField // just omitted it to simplify the example
    Button myButton; // only referenced in MyWidgetSubClass.ui.xml

    interface Binder extends UiBinder<Widget, MyWidgetSubClass> {
    }
    final Binder binder = GWT.create(Binder.class);

    MyWidgetSubClass() {
        super(); // haven't called it before, wasn't sure what it does
        binder.createAndBindUi(this); // using
initWidget(binder.createAndBindUi(this)) in MyWidgetSuperClass
        widgetFieldOf_MyWidgetSuperClass.add(myButton);
    }

Now the compilation works but MyWidgetSubClass looks just like
MyWidgetSuperClass.

-Alex

On Jul 21, 4:51 pm, Jeff Larsen <[email protected]> wrote:
> Are you calling super()?
>
> Button myButton doesn't look like it was initialized, was it? Also note, if
> Button myButton is being built by ui:binder it needs to have a @UiField and
> come after uiBinder.createAndBindUi.

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

Reply via email to