That explains it. You are using the Tomahawk 1.1.8 version for JSF 1.1 and you are looking at the tag documentation for the JSF 1.2 version. There is a feature difference between the JSF1.1 and JSF1.2 versions. The escape attribute is not present in Tomahawk JSF 1.1. I'd suggest that you upgrade to Tomahawk 1.1.8 for JSF 1.2 or just continue with your workaround.

-R

j haley wrote:
I'm using MyFaces 1.2.5 and Tomahawk 1.1.8. I'm a little confused with the link you sent. From that, I see that outputLabel does not support the escape attribute, but the following MyFaces and Tomahawk docs says that it does. http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_outputLabel.html
http://myfaces.apache.org/core12/myfaces-impl/tlddoc/index.html
I found a work around. From memory this is what I did. <t:outputLabel for="requires3rdPartya">
  <t:outputText escape="false" value="#{labels['l.req3rdParty']}" />
</t:outputLabel>


> Date: Thu, 8 Jan 2009 15:48:49 -0800
> From: [email protected]
> To: [email protected]
> Subject: Re: escape attribute does not work with output Label
>
> What version of Tomahawk are you using? From the tag documentation,
> http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_outputLabel.html,
> there is no 'escape' attribute for the tag. It looks like you should
> file an enhancement request in Jira.
>
> -R
>
> On Thu, Jan 8, 2009 at 5:39 AM, j haley <[email protected]> wrote:
> > Escape attribute with output Label does not work. If I use this same label
> > with outputText, it works fine. Any ideas?
> >
> > Label
> > l.req3rdParty=Requires 3<sup>rd</sup> Party
> >
> > Does not renders super script properly - Renders the same if escape is true
> > or false
> > <h:outputLabel for="requires3rdPartya" escape="false"
> > value="#{labels['l.req3rdParty']}" />
> > <t:outputLabel for="requires3rdPartyb" escape="false"
> > value="#{labels['l.req3rdParty']}" />
> >
> > Does render superscript properly
> > <t:outputText escape="false" value="#{labels['l.req3rdParty']}" />
> >
> > ________________________________
> > Windows Live™: Keep your life in sync. Check it out.


------------------------------------------------------------------------
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. Check it out. <http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009>

Reply via email to