we faced a similar issue and have been considering writing custom renderers that render components with htm that better suits our site design. not actually gotten around to doing that yet though.

dave

On 04/02/2005, at 4:20 PM, Norm Deane wrote:

I'm coming from a Struts/Tiles background and really like the Tiles approach to page layout. My first endevour with JSF involves converting an existing Struts/Tiles web application to JSF. I've got the Tiles integration with MyFaces setup but as I was converting the tiles (header, footer, body, leftnav, etc) I ran into the JSF requirement that all template text and custom JSP tags in included pages must be nested in a <f:verbatim> tag. This led to some really nasty looking pages. For example, I found myself doing this on a couple occasions...

<f:verbatim><div id="header"></f:verbatim>
<h:outputText styleClass="headerText" value="This is my header"/>
<f:verbatim></div></f:verbatim>

Is there another way? How are other people breaking their JSPs down into "modular" chunks so that they can be reused? I guess one answer is to avoid template text and custom tags all together and just use JSF components exclusively. Unfortunately in this case that is not a realistic option.

Thanks,

Norm Deane
http://jroller.com/page/deanen






Reply via email to