Hmmm Thanks. However, for example, I decorate a column containing numbers, with a GIF(s). I still need the column to be part of the export. But I don't want the excel cell to contain the URL of the GIF, jut the number that. Do you still think the media attribute would work?
thanks, jeff -----Original Message----- From: Andy Pruitt [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 6:16 PM To: [EMAIL PROTECTED] Subject: RE: [displaytag-devel] how to export without decorations > > > i am using a decorator to add complex URLs as well as > images to some data (or to completely replace the "view" of the > data) in some columns. > I like the decorator because I can still sort on the data > itself, as opposed to the HREF or IMG tag (by clicking the column > headings) > > But, when I export (to excel, for example), it exports the > HREF or IMG tag to the table cell rather than the data from the bean. > > Can you point me to where (what files, or how ) to > control/change this behavior? Simplest thing to do is to have a separate column that is formatted for export. Use the http://displaytag.sourceforge.net/tagreference.html#column_media attribute, and set the online version to be media="html", and the export version to be media="xml csv excel". There should be an example of this in the sample war (although it does not seem to be current at displaytag.org). > > Obviously, the header sorting functionality ignores the > decorator and operates on the the data itself, so somehow the > export should be able to do the same? > > thanks, > > jeff beck > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > displaytag-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-devel ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel