Mike is right. It's not a bug.
ferbatim "added" outputtext around your "content"
but mixing jsf comps/tags into verbatim causes error.
JSF 1.2 works (Glasfish) because the algor. for the content
interweaving is inside
JSF 1.2
-Matthias
On 9/16/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote:
Mike,
I tested the code that wasn't working as expected on Glassfish and
Sun's implementation of JSF 1.2 and it worked fine. So maybe this
should be a bug with MyFaces or an inefficiency of JSF 1.1?
Regards,
Behi
On 9/15/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> I think it's a usage error, not a bug.
>
> You'll need to do something like this:
>
> <panelGroup>
> <f:verbatim>
> <div style="height: 50px; background-color:
> tan; font-size: 16px;">
> </f:verbatim>
> <h:outputText value="#{bundle.saturday}" />
> <f:verbatim>
> </div>
> </f:verbatim>
> </panelGroup>
>
> Or you should be able to use this (you probably have to escape the
> [<>"] characters, though):
>
> <h:outputText value="<div style="height: 50px; background-color:
> tan; font-size: 16px;">#{bundle.saturday}</div>" />
>
> On 9/15/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > The following code snippet:
> >
> > <h:form>
> > <h:dataTable var="slot" value="#{indexBean.slots}">
> > <f:facet name="header">
> > <f:verbatim>
> > <div style="height: 50px; background-color:
> > tan; font-size: 16px;">
> > <h:outputText value="#{bundle.saturday}" />
> > </div>
> > </f:verbatim>
> > </f:facet>
> >
> > Should generate the value of the <h:outputText> inside a div. But by
> > looking at the generated code, it can be seen that div is place after
> > the output of the <h:outputText>:
> >
> > <th scope="colgroup" colspan="7">Saturday
> > <div style="height: 50px; background-color: tan; font-size: 16px;">
> >
> > </div>
> >
> > If I put the <f:verbatim> around the <h:dataTable> the div is not
> > rendered in the output at all.
> >
> > Could someone please confirm this bug?
> >
> > (MyFaces version: 1.1.3)
> >
> > Regards,
> > Behi
> >
> > --
> > "We can only see a short distance ahead,
> > but we can see plenty there
> > that needs to be done." - Alan Turing
> >
> > "Science is a differential equation. Religion
> > is a boundary condition" - Alan Turing
> >
> > Behrang Saeedzadeh
> > http://www.jroller.com/page/behrangsa
> > http://my.opera.com/behrangsa
> >
>
--
"We can only see a short distance ahead,
but we can see plenty there
that needs to be done." - Alan Turing
"Science is a differential equation. Religion
is a boundary condition" - Alan Turing
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com