What's the suggested way to do this?
In an older post I read the suggestion to add the widgets at some
other place in the UiBinder XML file and then to programmatically
"move" them to the right place in FlexTable. That's what I currently
do: I add the widgets to a HorizontalPanel in UiBinder, then in
onModuleLoad() I manually use FlexTable.setWidget() to move them to
the FlexTable. Afterwards, I delete the HorizontalPanel as it's not
required anymore.
Is there currently a "better" or a "cleaner" way to do this? Or is
this type of solution currently the best option? Are there any other
tables that offer functionality similar to FlexTable and that I can
declare in UiBinder (I need labels and text boxes vertically aligned,
each in multiple columns. Additionally, some of the rows have colspan
larger than one.)?
- Guenther
My main reason for using FlexTable was that I need to dynamically add
and remove rows and that this is somewhat simpler using FlexTable's
insertRow() and removeRow() methods.
But I'll have a look at HTML tables, I guess it shouldn't be to hard
reimplementing this functionality via direct DOM access.
- Guenther