You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2011/09/02 22:05:10 UTC
[jira] [Resolved] (MYFACES-3298) h:outputText incorectly renders an
extra
[ https://issues.apache.org/jira/browse/MYFACES-3298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-3298.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.3
2.0.9
Assignee: Leonardo Uribe
I tested it and the reason is escape attribute adds a marker, so when the check for set the span is done, this field is also included in the calculation, and it should not. Checking this one I saw that h:messages adds an additional <span>, and that is not necessary. Thanks for the report.
> h:outputText incorectly renders an extra <span>
> -----------------------------------------------
>
> Key: MYFACES-3298
> URL: https://issues.apache.org/jira/browse/MYFACES-3298
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.1.2
> Reporter: Jarek
> Assignee: Leonardo Uribe
> Fix For: 2.0.9, 2.1.3
>
>
> The h:outputText seems to incorectly render a <span> element, even though no id/style/styleClass attribute is specified (as specified in http://myfaces.apache.org/core21/myfaces-impl/tlddoc-facelets/h/outputText.html )
> Example:
> <h:outputText value="abc" escape="false" /> ---renders---> <span>abc</span>
> In 2.1.1 it corectly rendered just abc.
> Reason for the regression seems to be the optimization introduced in MYFACES-3237. I didn't go much into the details of the optimization mechanism, but seems that in HtmlTextRendererBase:renderOutput the "span = true" gets incorectly set when any attribute is encountered (and not only one of id/style/styleClass).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira