Friday, May 21, 2010

UIBinder and dynamic tables

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?

Damon.

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

No comments:

Post a Comment