GWT 2.1 UiBinder SimplePager requires location attribute

rapadura picture rapadura · Nov 17, 2010 · Viewed 8.3k times · Source

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?

Answer

Peter Knego picture Peter Knego · Nov 23, 2010

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

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