« Photojunkie's Toronto includes | Home | JSF element ID convention »

August 25, 2006

Tableless web design using Java Server Faces

There are times when I feel that no one bothered consult a user interface engineer when they came up with the specs for JSF. My latest grievance with JSF is that it doesn't seem to support tableless CSS layouts. In fact, it actually goes out of its way to render any JSF output elements outside of the div tags that I put around them. One solution around this is to create a custom component that renders div tags. Better yet, you can use Apache's MyFaces Tomahawk components. I'm sure there are many other component libraries that support the use of divs too, but I chose to use Tomahawk since I'm using MyFaces.

I believe the issue of supporting divs will be supported in JSF 1.2.