Nick Heiner
Nick Heiner

Reputation: 122450

GWT: Reference one widget from another in UiBinder?

I have the following UiBinder code:

    <c:CellList ui:field="membersList" />
    <c:SimplePager display="membersList" />

I want to have the pager use the cell list as its display. However, the above code fails because it is trying to parse the string "membersList" instead of using it as a reference to a widget:

    [ERROR] [foo] - Cannot parse value: "membersList" as type HasRows

Is there any way to make this work?

Upvotes: 4

Views: 736

Answers (1)

Ioan Agopian
Ioan Agopian

Reputation: 788

Yes, you have to use curly brackets:

<c:CellList ui:field="membersList" />
<c:SimplePager display="{membersList}" />

Upvotes: 3

Related Questions