File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes To Hans: How bes to get panels to render divs and css for layout rather than tables. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "To Hans: How bes to get panels to render divs and css for layout rather than tables." Watch "To Hans: How bes to get panels to render divs and css for layout rather than tables." New topic
Author

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

dave sag
Ranch Hand

Joined: Feb 17, 2003
Posts: 47
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


JSF / Jini / Javaspaces / JDO - all rock in my opinion.
Hans Bergsten
Author
Ranch Hand

Joined: Dec 01, 2003
Posts: 106
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).


Hans Bergsten, hans@gefionsoftware.com<br />Author of O'Reilly's<br />- JavaServer Pages,<br />- JavaServer Faces<br /><a href="http://www.hansbergsten.com/" target="_blank" rel="nofollow">http://www.hansbergsten.com/</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To Hans: How bes to get panels to render divs and css for layout rather than tables.
 
Similar Threads
A simple problem with my form
centering buttons in Firefox
Using CSS to default print style to landscape
Controlling Page Layout
Pop window in HTML