Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tables for layout  RSS feed

 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just been thrown in the deep end with an ICEFaces project and one of my initial reactions, having done a bit of web design in the past, is the use of tables for layout. These days in the world of web design, it is considered very backwards to use tables for anything other than displaying data. Do some of the other JSF component libraries avoid this despicable practice? Surely it wouldn't be hard to have an icefaces.css file which handles all the layout and have the component library render 'proper' XHTML.

The more I think about it, the more it makes sense, for example, I am currently working on an enterprise project where the corporation has style guidelines. If things were done MY way, the styling would be completely out of the Java code, in my (very) humble opinion, where it should be. If all the css classes were named correctly in the Java code, the corporation's standard css file could be used without having to modify much.

On top of that, a good standard css file and image library or two would mean everything would already look pretty good for those Java gurus who don't want to touch HTML/CSS and anything above that you would just write your own CSS for to overwrite the default styles.

What say the panel?

Disclaimer: Like I said, I am new to all this Faces malarkey.
 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And one more thing, does no-one in J2EE land care what the rendered HTML looks like? PHP coders would feel queasy looking at some of the HTML output from J2EE apps, everything on one line for example, or tons of white-space.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!