Found it!  updateRowCount(arg0.size(), true);   was missing.......

        public void onSuccess(List<ComposerProxy> arg0) {
                                                updateRowCount(arg0.size(), 
true);
                                                updateRowData(0, arg0);
                                        }

On 15 mar, 15:52, jmbz84 <jmb...@gmail.com> wrote:
> Thanks Thomas that worked :).
>
> I have another question when the items how in the CellBrowser the text
> "Show more" and "Show less" appears in the bottom. How can I disable
> it???
>
> Here is the code :
>
> //How to call it
> ComposerDataProvider dataProvider = new
> ComposerDataProvider(testRequestFactory);
>
> //The actual Class
> public class ComposerDataProvider extends
> AsyncDataProvider<ComposerProxy> {
>         private TestRequestFactory rf;
>
>         public ComposerDataProvider(TestRequestFactory requestFactory) {
>                 this.rf = requestFactory;
>         }
>
>         @Override
>         protected void onRangeChanged(HasData<ComposerProxy> display) {
>
>                 getData();
>         }
>
>         private void getData() {
>
>                 ComposerRequest request = rf.getComposerRequest();
>
>                 request.getQuery("select a from Composer a").fire(
>                                 new Receiver<List<ComposerProxy>>() {
>                                         @Override
>                                         public void 
> onSuccess(List<ComposerProxy> arg0) {
>                                                 updateRowData(0, arg0);
>                                         }
>                                 });
>         }
>
>
>
>
>
>
>
> }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to