shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Priest (JIRA)" <j...@apache.org>
Subject [jira] Created: (SHALE-451) outputFormat ignores "escape" attribute
Date Tue, 26 Jun 2007 21:54:27 GMT
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="#{@managed-bean-name.currencySymbol}" />
				</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.


Mime
View raw message