GWT: Link to one widget from another in UiBinder?

I have the following UiBinder code:

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

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

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

Is there any way to make this work?

+4
source share
1 answer

Yes, you should use curly braces:

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

All Articles