• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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
 
Author
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!