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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to