List/tabel to show complex data

88 views
Skip to first unread message

Thomas Broyer

unread,
Jul 17, 2012, 2:20:59 PM7/17/12
to google-we...@googlegroups.com
For such a case where there aren't really any column, I'd rather use a CellList.
Creating such a complex cell is made much easier with 2.5's "UiBinder for Cells".

You could also try 2.5's CellTableBuilder (where you could easily make the buttons on the upper right corner dynamic by adding Columns) but it'd probably be more complicated.

Joseph Lust

unread,
Jul 17, 2012, 8:51:15 PM7/17/12
to google-we...@googlegroups.com
A question for Thomas and others:

From the supplied mockup, why would one use the CellTable/CellList structures rather than just UiBinder? From what I can tell, just making a simple Widget/element with 3 spans, 1 label, and 3 buttons in a div would do the trick. As long as there are not hundreds of them, and he is not using typical table behaviors like sort/filter/columns, what is the benefit of CellX over a UiBound HTMLPanel/div?

I have not benchmarked it, but I assume the event wireup on the UiBinder adds some overhead and that you could save some overhead by not using Widget. However, when there are buttons and interactions like in this one, UiBinder might be a cleaner way to achieve it. Where does the inflection point lay?


Sincerely,
Joseph

Ralf Ovelgoenne

unread,
Jul 18, 2012, 7:23:01 AM7/18/12
to google-we...@googlegroups.com
Thanks Thomas and Joseph,
the UiBinder for Cells looks quite interesting. I will try it. I found the following article about it: https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Rendering_HTML_for_Cells
Is there any more info about this topic somewhere?

@Joseph: At the moment I am not sure how much data I will have to present. Did I get it right: do you propose to write it directly into the UiBinder XML and show the data through iteration?

Joseph Lust

unread,
Jul 18, 2012, 12:15:11 PM7/18/12
to google-we...@googlegroups.com
Ralf,

GIven that you don't know how many you intend to display, and that there could be a large number of them, I'd go with Cell. However, if you are making just a few, with rich eventing/interactions, then I'd do UiBinder. I'd still be keen to know measured benchmarks for these widget types.

I hope that helps.

Sincerely,
Joseph

Thomas Broyer

unread,
Jul 18, 2012, 12:49:10 PM7/18/12
to google-we...@googlegroups.com


On Wednesday, July 18, 2012 6:15:11 PM UTC+2, Joseph Lust wrote:
Ralf,

GIven that you don't know how many you intend to display, and that there could be a large number of them, I'd go with Cell. However, if you are making just a few, with rich eventing/interactions, then I'd do UiBinder.

+1
 
I'd still be keen to know measured benchmarks for these widget types.

I'd be too ;-)
I'm just a lone developer, so I didn't do any benchmarking and have no number to share. Google have some though, for sure.
Reply all
Reply to author
Forward
0 new messages