outputFormat ignores "escape" attribute
---------------------------------------
Key: SHALE-451
URL: https://issues.apache.org/struts/browse/SHALE-451
Project: Shale
Issue Type: Bug
Components: Clay
Affects Versions: 1.0.3
Reporter: Ian Priest
The "escape" attribute is missing from the definition of outputFormat in the
clay-config.xml file in shale-clay-1.0.3.jar, causing the attribute to be
ignored when used in the html.
My HTML is as follows...
<h:outputFormat escape="false"
value="#{messages['myaccount$callhistory.moneycostcol.header']}">
<f:param value="[EMAIL
PROTECTED]" />
</h:outputFormat>
but I found that escape was defaulting to true. The definition for the tag in
META-INF/clay-config.xml is:
<component jsfid="outputFormat" componentType="javax.faces.HtmlOutputFormat"
extends="baseOutput">
<description>Render a readonly text value substituting inline string
parameters. </description>
</component>
<component jsfid="h:outputFormat" extends="outputFormat"/>
I edited the META-INF/clay-config.xml file in shale-clay-1.0.3.jar to be as
follows:
<component jsfid="outputFormat" componentType="javax.faces.HtmlOutputFormat"
extends="baseOutput">
<description>Render a readonly text value substituting inline string
parameters. </description>
<attributes>
<set name="escape" bindingType="VB">
<description></description>
</set>
</attributes>
</component>
<component jsfid="h:outputFormat" extends="outputFormat"/>
and now my esacpe attribute works correctly. Someone needs to make the change
described above for the next release.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.