> > Is there any other way to do it? It seems that we have too > many attributes already. Maybe we should consider adopting a > struts-tiles like approach and define the tables in an xml > format or something...or at least come up with a way to > specify the output for each type. Adding media solves one > part of the problem in terms of which columns to display, but > what about other things like table formatting, headers or footers?
I'm not sure about "too many"; I think we have some attributes that should be handled by implicit object formatting, but that's OT. I'm enthusiastic about "media" because it determines whether the column even executes. The demand is out there; the alternative is ugly, see http://sourceforge.net/mailarchive/forum.php?thread_id=3530095&forum_id= 28703 for more details. Something like: <display:table id="row"> <display:column property="name" media="csv,excel"/> <display:column property="name" media="html"><b><c:out value="${row.name}"></b></display:column> would otherwise be very ugly to implement. Headers and footers are a separate issue; I think Fabrizio has been doing some work on footers. > > In the past, I used the 'property' attribute when dumping a > CSV over using the column body, since column bodies can > contain HTML. In a CSV, you probably don't ever want to see > the HTML, but if you were dumping to Excel, which does handle > links correctly, you may or may not want to include the html. > So it seems, that you'd also need another attribute that for > each output format determines whether you want to use the > column body JSP or not. I don't get it. I would think that, if the column body is provided, it should ALWAYS be output (this goes back to some emails last week: http://sourceforge.net/mailarchive/forum.php?thread_id=3506505&forum_id= 26581 .) > > John > > > On Tue, 25 Nov 2003, Andy Pruitt wrote: > > > > > Does anyone have any objections to adding a "media" > attribute to the > > table? It will allow you to specify that a column be sent only for > > responses of the specified type (html,csv,xls, etc). > > > > I think Fabrizio has made some improvements in exports of > late, so I > > would be altering this old patch > > (http://sourceforge.net/mailarchive/message.php?msg_id=6231911) to > > work with his new code. > > > > --andy > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it help you > > create better code? SHARE THE LOVE, and help us help YOU! Click > > Here: http://sourceforge.net/donate/ > > _______________________________________________ > > displaytag-devel mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > > > > -- > John York > Software Engineer > CareerSite Corporation > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > displaytag-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel
