Search code examples
gwtuibindergwt2

GWT 2.1 UiBinder SimplePager requires location attribute


What can be provided to the location attribute of a

<c:SimplePager ui:field='pager' location='HERE' /> 

I tryed CENTER, but it didnt work, I see in the expense sample app that they dont have a location attribute but instead set it on the creation of it in the UiBinder. But I cant do that since its a required attribute. What to do?


Solution

  • You must provide SimplePager.TextLocation, which can be CENTER, LEFT or RIGHT.

    <c:SimplePager ui:field='pager' location='CENTER'/>