On 21 mai, 09:58, trisk3ll <damonr...@gmail.com> wrote:
> Hi,
>
> I'm trying to create a simple table in UIBinder, then iterate through
> a set of objects creating a row for each object. Ideally, there would
> be some sort of loop construct in UIBinder? Or some way to bind a
> table to an array of objects?
>
> I guess I could use flextable but I'd like to have more control over
> the styles.
>
> I can use a hidden row that I clone then append to the table. But it
> gets into nasty dom manipulation after that.
>
>                 Node newNode = row.cloneNode(true);
>                 mytable.appendChild(newNode);
>
> Ideas?

Try the new widgets coming in to GWT 2.1, particularly CellList and
CellTable. You'll eventually define your cells with UiBinder too
(though not in the UiBinder that contains the CellTable). You'd
probably use a ListViewAdapter to manage the widget's data.

-- 
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 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