FlexTable and UiBinder
I'm currently working on an UiBinder based application, where I'd like to use a FlexTable to hold data for a form (the labels plus the text boxes). Unfortunately, it seems that UiBinder does only allow to declare the FlexTable, but not the elements of the FlexTable. As there are quite a lot of elements, I'd like to decleare them in UiBinder too (otherwise it would not make sense to use UiBinder in my application). 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 -- 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.
Re: FlexTable and UiBinder
Why not use a HTML panel and inside define a HTML table with the widgets in the cells? I rarely use things like FlexTable, HorizontalPanel or VerticalPanel. Usually all my forms are a combination of pure HTML and widgets. If you don't need IE6 support then I can show you some neater ways of laying out forms without tables. -- 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.
Re: FlexTable and UiBinder
On Mar 16, 12:47 pm, Paul Stockley pstockl...@gmail.com wrote: Why not use a HTML panel and inside define a HTML table with the widgets in the cells? I rarely use things like FlexTable, HorizontalPanel or VerticalPanel. Usually all my forms are a combination of pure HTML and widgets. If you don't need IE6 support then I can show you some neater ways of laying out forms without tables. 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 -- 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.
Re: FlexTable and UiBinder
If you need to dynamically modify the table I would stay with FlexTable. Working with the DOM on tables is kind of messy. -- 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.