Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To Hans: How bes to get panels to render divs and css for layout rather than tables.

 
dave sag
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have designed our site to be xhtml strict and are using CSS rather than tables to manage positional layouts, and so forth but would like to generate DIV and SPAN tags as appropriate for overal page positioning rather than tables. wer could add our own tag, component, renderers etc, for a layoutPanel for example, as distinct from a gridPanel but that seems like overkill. I am honoured to have the opportunity to pose this question to you. your input is appreciated.

dave
 
Hans Bergsten
Author
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dave sag:
We have designed our site to be xhtml strict and are using CSS rather than tables to manage positional layouts, and so forth but would like to generate DIV and SPAN tags as appropriate for overal page positioning rather than tables. wer could add our own tag, component, renderers etc, for a layoutPanel for example, as distinct from a gridPanel but that seems like overkill. I am honoured to have the opportunity to pose this question to you. your input is appreciated.

dave


The JSF specification defines only the bare minimum for layout, e.g., the Grid renderer for the UIPanel component and the layout attribute for the Checkbox and Radio renderers for the UISelectMany/One components.

Much more powerful layout components can be developed as custom renderers for the UIPanel component, possibly combined with facets. You may want to look at the JSF open source projects first to see if someone has already developed what you need (search on Google or go to http://www.jamesholmes.com/JavaServerFaces/ or http://java.sun.com/j2ee/javaserverfaces/; two great references for JSF stuff).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic