Thursday, March 15, 2012

Re: Requestfactory and CellBrowser Context Problem

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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate