[ http://jira.codehaus.org/browse/DISPL-387?page=comments#action_73879 ] 
            
Paul Sammy commented on DISPL-387:
----------------------------------

My workaround is to modify the standard 
org.displaytag.decorator.EscapeXmlColumnDecorator class to do a search and 
replace on the unsupported alphanumeric entity and replace it with the numeric 
entity.

So:

            // escape the contents
            returnValue = StringEscapeUtils.escapeXml(columnValue.toString());
            // because IE doesn't understand ' we replace with '
            if (StringUtils.contains(returnValue.toString(), "'")) {
                // tis found
                returnValue =
                    StringUtils.replace(
                        returnValue.toString(),
                        "'",
                        "'");
            }

then in the jsp, instead of using escapeXml="true", you need to do 
decorator="foo.blah.myclass"

> problem for  single quote escaping for single quote character in displaytag 
> column tags using escapeXML="true"
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: DISPL-387
>                 URL: http://jira.codehaus.org/browse/DISPL-387
>             Project: DisplayTag
>          Issue Type: Bug
>            Reporter: ruth shacter
>
> It appears that displaytag escapes (when escapeXml="true") a single quote 
> with '
> c:out and bean:write tags escape it with '
> The problem is that while Firefox and Safari understand ', Internet 
> Explorer does not. All three browsers understand '. 
> This means that all single quotes in displaytag tables will appear as ugly 
> "'". 
> This might be related to issue: maven-83:   xdocs entity encoding problem for 
> single quote
> If there is a known workaround, could you let me know? thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to