Re: Simple working example of the Data Presentation Widget CellTable

2010-06-17 Thread bond
Hi, someone can post a complete example of use of Data presentation Widget? it'll be also welcome an example of server side. Thanks Best regards On 3 Giu, 14:14, Paul Stockley pstockl...@gmail.com wrote: Sorry my message got truncated: Your over complicating it. You should just subclass

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-04 Thread Alek
Spring Roo has some example for last milestone. But compared with above examples it looks like horrible :) -- 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-tool...@googlegroups.com. To

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
Your making it overly complicated: For the case where you have all the data in a list already: ColumnResidentListDO, String unitColumn = new ColumnResidentListDO, String(new TextCell()) { @Override public String getValue(ResidentListDO object) {

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
Your over complicating it. You should just subclass AsyncListViewAdapter such as: protected class residentAsyncAdapter extends AsyncListViewAdapterResidentListDO{ @Override protected void onRangeChanged(ListViewResidentListDO view) {

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
Sorry my message got truncated: Your over complicating it. You should just subclass AsyncListViewAdapter such as: protected class residentAsyncAdapter extends AsyncListViewAdapterResidentListDO{ @Override protected void

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread saklig
This helped me a lot :-) Thanks guys! On Jun 3, 2:14 pm, Paul Stockley pstockl...@gmail.com wrote: Sorry my message got truncated: Your over complicating it. You should just subclass AsyncListViewAdapter such as:         protected class residentAsyncAdapter extends

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Ed
I don't know if I like this whole Data View pattern the it's used in the above examples. I think the view and data should be separated, as such that the widget should not contain a Generic that is indicating the contained data object. I thinks you should use something like a a ListViewer with Crud

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Ed
Owww, what I forget to mention which is essential in my last post: The row/table editor (whatever you prefer) can be used to set the content of a cell by inserting a widget/text/html. This boosts performance as you can easily set a simple text in case of a simple text you want to show, or set some

Simple working example of the Data Presentation Widget CellTable

2010-06-02 Thread saklig
Hi, I want to create a working example of the CellTable widget that was recently released in GWT 2.1 M1. I'm having a hard time finding documentation for this widget, as apparently it has not been written yet :-/ What I've tried so far: ListMyCellData dataList = new ArrayListMyCellData();

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-02 Thread Andrew
The following code is what I'm woking on, hope it can help you: protected void init() { VerticalPanel container = new VerticalPanel(); initWidget(container); int pageSize = 10; CellTableUser cellTable = new CellTableUser(pageSize);