Hi List,

I think there is a bug in the t:htmlTag:
First some explanantion about the setup:
I'm using Tomahawk & MyFaces 1.1.4 (snapshot)

My problem was that the client stored HTML text in the DB. (containing only <br/> and <b> but this was apparently important)

So inside my "field", I tried lots of things:
just <h:outputLabel id="field" style="font-style: italic" value="# {calendar}" /> doensn't work. (just prints out <br/> instead of interpreting it this neither: <h:outputLabel id="field" style="font-style: italic"> <pre>#{calendar}</pre> /> </h:outputLabel>

What I eventually came up with, works:

<t:dataTable var="calendar" id="printOutCals" value="# {calmgmtbean.printOutArrayCals}" >
        <t:column>
                <f:facet name="header">
                        <h:outputText  value="#{labels.calResch_printOutCals}" 
/>
                </f:facet>
<h:outputLabel id="field" style="font-style: italic"> <t:htmlTag value="#{calendar}" /> </h:outputLabel>
        </t:column>
</t:dataTable>

... Unfortunately it works too good: all content is printed out "twice"!

Does anyone have idea or will I have have to wait untill this bug is corrected? :-)

Thx,
Wolf


Reply via email to