I found the same problem. I think it is by design. If you look at the sources, the file BaseExportView.java, around line 227 (in the latest version) you will find the following line:

 

value = column.getValue(true);

 

The fact that it calls getValue with a “true” argument makes it retrieve the decorated value. I do not think this should be the behavior, as it is more likely that you will want the undecorated value, but it is a question of design (or taste). In any case I would give the option somewhere to do it with undecorated values.

 

Meanwhile you can change the line to:

 

value = column.getValue(false);

 

and compile on your own.

 

Michel Adar

Sigma Dynamics Inc.

 


From: Sven Siegfried Imfeld [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 5:27 AM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] Export Without Decoration

 

I'm using the 3 export options(Excel, CSV and XML) and I have a table decorator class.

When I export to any format, the decorated columns are exported with the decoration information.

 

For instance, my "Delivery Date" column is exported with all this information:

 

<span class='red' title='Delayed'>02/09/2002</span>  

 

I'm already setting the export.decorated property to false, but even so it doesn't work.

<display:setProperty name="export.decorated" value="false" />

Does anyone have any resolution for this?

Thanks in advance.

 

Sven

Reply via email to