I've looked at x:div and am using it in some places but the problem I
have with it is that it requires either style or styleClass. In some
cases I don't want either. What I want sometimes is a div with an id...
<div id="data">
</div>
Using x:div the best I've been able to come up with is...
<div class="data">
</div>
Am I missing something?
Norm Deane
http://jroller.com/page/deanen
Korhonen, Kalle wrote:
x:div.
Kalle
-----Original Message-----
From: Norm Deane [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 7:21 AM
To: MyFaces Discussion
Subject: Dynamic Inclusion/Tiles and <f:verabtim>
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