Bugs item #969470, was opened at 2004-06-09 02:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=969470&group_id=73068

Category: main tag library
Group: v 1.0-b3
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: tag lib does not take care of reserved chars

Initial Comment:
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"/>











----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=969470&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to