Ideological concerns aside, you should use what works for you. Most reasons against using tables for layout are relevant for static html pages, not so much AJAX/GWT applications. It's generally not worth artificially breaking up your application unless there is an actual particular concern you need to address.
That said, as of GWT 2.0 you can use LayoutPanels and their kin along with flowpanels instead of table-based Horizontal/VerticalPanels to do your layout more predictably, and they use only divs. Some widgets you might want to use like DialogBoxes, decorated popups, and grids will still use tables, but overall you can pretty easily get a good layout within the system with few tables. Additionally, UIBinder lets you mix html tags and widgets if you're comfortable with that approach. Here's the docs: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html On Apr 21, 2:47 pm, Sven <[email protected]> wrote: > Dear all, > > if I got it right, layouts based on GWT widgets normally end up in > huge table structures. While it works pretty fine for me, I see many > people arguing that nowdays you should avoid the use of tables for > layouting but build your layouts based on css formatting, such as > onhttp://webdesign.about.com/od/layout/a/aa111102a.htm > > Up to GWT 1.6, my way of layouting GWT applications was to program > them using the various panels and widgets in the Java source code and > I did not spend too much on CSS. Now that I can build the components > on XML/Java source code, I wonder what is the better way: building up > the main layout using XHTML and CSS and just adding the interactive > widgets into this kind of frame or to continue using GWT panels and > layouts to create applications and using CSS for decoration only. > > Any opinions out there? > > Sven -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
