Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Custom Widget - Expecting only widget in blah

$
0
0
Hey all,

I've created my own custom widget by extending Composite.

I'm using UIBinder and trying to add my component like so:

Code:

<sc:UIHLayout ui:field="hlyLicenseManagementLayout" width="100%" height="100%" membersMargin="15">
    <uc:LicenseDetailControl ui:field="ucLicenseDetailControl" />
</sc:UIHLayout>

Code:

public class LicenseDetailControl extends Composite implements HasHTML{
   
private static LicenseDetailControlUiBinder uiBinder = GWT.create(LicenseDetailControlUiBinder.class);
interface LicenseDetailControlUiBinder extends UiBinder<Widget, LicenseDetailControl> { /**/ }

    @UiConstructor
    public LicenseDetailControl() {
        initWidget(uiBinder.createAndBindUi(this));
    }
}

But I get this error:
Code:

12:17:12.832 [ERROR] [iportal] Expecting only widgets in <sc:UIHLayout height='100%' membersMargin='15' ui:field='hlyLicenseManagementLayout' width='100%'>: <uc:LicenseDetailControl ui:field='ucLicenseDetailControl'> (:55)
Can anyone help me out?

Viewing all articles
Browse latest Browse all 4756

Trending Articles