Speaking of displaytag.org, if someone has the current war, I'd be happy to put it up. I haven't had time to get my build working, so this would be the easiest way to get it updated.
John On Mon, 19 Jan 2004, Andy Pruitt wrote: > > > > > > 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 > -- John York Software Engineer CareerSite Corporation ------------------------------------------------------- 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