Doh! My DataGrid was not yet paging so I was seeing the disabled images 
which I had not set. Unlike PushButton and some other widgets, they aren't 
drawn based of filtering the enabled image. You have to provide them.

On Wednesday, April 16, 2014 5:01:44 PM UTC-4, Thad Humphries wrote:
>
> I have declared a CellTable with a SimplePager in my UiBinder. The 
> UiBinder file is paired with a Java file that includes custom 
> SimplePager.Resources. The images from this resource are not showing in my 
> client UI. The images are there and correctly pathed: I can see them loaded 
> in the Developer Tools, and there are no errors in the JavaScript console, 
> yet they do not appear in my client UI. What might I be missing? 
>
>   interface PagerResources extends SimplePager.Resources {
>     @Override
>     @Source("../../images/SkipBackwards.png")
>     ImageResource simplePagerFirstPage();
>     @Override
>     @Source("../../images/Backwards.png")
>     ImageResource simplePagerPreviousPage();
>     @Override
>     @Source("../../images/Forwards.png")
>     ImageResource simplePagerNextPage();
>   }
>
>   ...
>
>   @Inject
>   public QueryResultsViewDesktopImpl(final Messages messages, 
>       AppState appState) {
>     this.messages = messages;
>     this.appState = appState;
>     PagerResources pagerResources = GWT.create(PagerResources.class);
>     pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 
>         0, false) {
>       @Override
>       protected String createText() {
>         return "Showing " + (getPageStart()+1) + " thru " + getPageSize();
>       }
>     };
>     ...
>     cellTable = new DataGrid<Record>(KEY_PROVIDER);
>     cellTable.setEmptyTableWidget(empty);
>     pager.setDisplay(cellTable);
>     ...
>     LayoutPanel panel = uiBinder.createAndBindUi(this);
>     main.add(panel);
>   }
>     
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to