Hi,
        This is what I used. Configure the following the displaytag.properties
file:
export.banner=<div id="exportLinks">{0}</div>
export.csv=true
export.csv.class=com.trigent.spectrum.gui.export.CsvView
export.csv.label=
Note: I've not given anything for "label"

Now do the following in your web page
<a href="javascript:doExport()">Click to export</a>

Where the doExport javascript functions looks like this:

function doExport(type) {
        var href = document.getElementById("exportLinks").children[0].href;
        window.open(href);
}

This will open a new window and the file gets downloaded in that window.

Chidambaram Pl.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of thogau
Sent: Thursday, February 24, 2005 4:18 PM
To: [email protected]
Subject: [displaytag-user] Any way to customize export links?


Hi,

I know this question was already submitted here by someone else but
there was no answer so I give it try again :
Is there a way to configure the display:tag to have the export links
opened in a new browser window?
If not, would you advise to do it with javascript when the page is loaded?

Thanks

thogau



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to