• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic