> Hi,
>
> Thanks for the reply. I think my problem description was
> unclear. I'm not sure the media attribute would help me
> since I need to display/export all the columns in the table.
> But I would like to control the "export decorated/undecorate"
> at the column level rather than the table level.
>
> One workaround approach to this would be for the jsp to check
> the URL parameters for the parameter that displaytag inserts
> to indicate that an export is being requested. In my case, I
> have seen that "d-19426-e=1" is inserted into the URL. If I
> could rely on this being the same for all invocations, I
( you should not )
> could conditionally use one of 2 displaytag tables in my jsp.
( you should not need to )
> One would format for export and one would format for display.
( this is exactly what the media tag enables )
The trick with the media tag is to repeat the columns, like in the
example jsp, where the 'url' property is formatted differently as a
link on an html page and as plain text on an exported page. Only one
of these 2 columns - never both - will be displayed at a time:
<%-- either the url is shown as a link .. --%>
<display:column media="html" title="URL">
<% String url =
((ListObject)pageContext.findAttribute("currentRowObject")).getUrl();%>
<a href="<%=url%>"><%=url%></a>
</display:column>
<%-- .. or as plain text --%>
<display:column media="csv excel" title="URL" property="url"/>
> How is "d-19426-e=1" generated? Is it always of the form
> "d-nnnnn-e=1"??
>
> Currenly in b2 it is known that export.decorated=false does
> not work and a bug report has been submitted. Will this be
> fixed in b3? When will b3 be released?
>
> Thanks!
> NBirch
Not sure about the status on export.decorated bug, someone else
may chime in?
>
>
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 6:49 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [displaytag-user] export without decorator
>
>
> You could use the "media" attribute to hide/show stuff for html/excel.
>
> Matt
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Birch, Nigel
> > Sent: Tuesday, January 27, 2004 2:26 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [displaytag-user] export without decorator
> >
> >
> > Hi,
> >
> > I'm having the same trouble. I have set export.decorated to false,
> > and my exports still have all the decorations.
> >
> > I also have a situation where I'd like some columns to be exported
> > decorated and some exported undecorated. Can this be supported?
> >
> > Thanks
> > NBirch
> >
> > -----Original Message-----
> > From: Jeff Beck [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 19, 2004 8:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: [displaytag-user] export without decorator
> >
> >
> > i am using a decorator to add URLs (with parameters) as
> well as images
> > to some data (or to replace the "view" of the data) in some
> columns.
> > It's works good because I can still sort on the data itself, as
> > opposed to the HREF or IMG tag !
> >
> > But, when I export (to excel for example), it exports the
> HREF or IMG
> > tag (surprise [or not]), rather than the data from the bean.
> >
> > Can you tell me how/where (what files) I can edit to control/change
> > this behavior?
> >
> > 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-user mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
> >
> > -------------------------------------------------------
> > 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-user mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
>
>
>
> -------------------------------------------------------
> 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-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
> -------------------------------------------------------
> 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-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
-------------------------------------------------------
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user