The following comment has been added to this issue:

     Author: Maxwell Grender-Jones
    Created: Tue, 9 Nov 2004 12:52 PM
       Body:
I should like to implement this feature, as we need it for our purposes as well 
(i.e. I'd rather not have to set a table decorator everywhere).

http://www.mail-archive.com/displaytag-devel@lists.sourceforge.net/msg01053.html

This thread discussed adding a escapeXML attribute to the table/column tag. How 
would this be implemented in practice? Presumably escapeXML would have to be 
passed through to the decorators used to display the entries of the table? I 
presume it would be no use to try to escapeXML elsewhere, as it would have to 
be done in many places (Column, TableTag etc) and should presumably be the 
responsibility of the decorator anyway (which might want to process escaped / 
unescaped xml, and then output appropriate escaped / unescaped xml as per the 
attribute).

Should we therefore add more decorator interfaces (to maintain backwards 
compatability) e.g. EscapingColumnDecorator (which could be told to escape 
HTML/XML or whatever, with an appropriate default)?

An easier way to do this would be to throw away the whole attribute idea, and 
add table.decorator to the list of configurable properties, and provide an 
xmlescaping decorator, s.t. that if a user wants site-wide xml escaping by 
default, they can set it in their displaytag.properties file.

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/DISPL-80?page=comments#action_26243

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-80

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-80
    Summary: option to automatically escape xml
       Type: Improvement

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Decorators
   Fix Fors:
             1.1
   Versions:
             1.0 RC1

   Assignee: 
   Reporter: fabrizio giustina

    Created: Fri, 22 Oct 2004 1:11 PM
    Updated: Tue, 9 Nov 2004 12:52 PM

Description:
====
imported from sf tracker
id 929098 
submitted by Adam Murray - admm
http://sourceforge.net/support/tracker.php?aid=929098 
====

I'm displaying some strings that contain xml. These are
not diplayed by the web browser because it tries to
interpret the tag as html. To correct this I have to
use a decorator. It would be nice if there were an
option one could set for the table (or individual
columns) to automatically escape any xml in the strings
being displayed.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to