[ http://jira.codehaus.org/browse/DISPL-83?page=all ] fabrizio giustina closed DISPL-83: ----------------------------------
Resolution: Duplicate duplicate of DISPL-80 > tag lib does not take care of reserved chars > -------------------------------------------- > > Key: DISPL-83 > URL: http://jira.codehaus.org/browse/DISPL-83 > Project: DisplayTag > Type: Improvement > Components: Decorators > Versions: 1.0 RC1 > Reporter: fabrizio giustina > Priority: Minor > Fix For: 1.1 > > > ==== > imported from sf tracker > id 969470 > http://sourceforge.net/support/tracker.php?aid=969470 > ==== > It seems that the tag lib does not take care of reserved > chars like < or > or ' which are not allowed in valid html. > If the bean used to build the table content contains > such chars, the resulting html is not valid. > For example: > The Bean contains the value "hello <td></td> how are > you". > the resulting html should look like this: > hello <td></td> how are you > But it looks like this: > hello <td></td> how are you > The resulting Table looks not very good. > I think the tag lib is responsible to convert the values > before rendering it to html because that is the normal > behaviour of a tag lib (struts, jstl, ...). > If the developer is resonsible to do the conversion he > has a lot of work because he has to develop the beans > twice. One that contains the values used in the internal > logic and one for the representation containing the > converted values. > When he builds the list he has to manually convert all > the attributes. > An other way is to develop ReportTableDecorators > containing getter methods for each attribute to do the > conversion. > Because i was not able find any flag to configure this > behaviour i think that this is an bug. > It should be possible to turn on and of the conversion > for each collumns like shown in the following line: > <display:column property="PMAuftragsID" title="OrderID" > convert="true"/> > Date: 2004-06-18 21:22 > Sender: fgiust > Logged In: YES > user_id=798060 > xml escaping is not currently supported by the taglib, but you > can use a simple columnDecorator to do that (there is no > need for a specific tableDecorator) > moving to the feature request tracker, it will probably be > handled in future by a column decorator shipped within the > taglib distribution -- 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel