I´m pretty sure you´ll have to use decorators to get the footers and captions
when exporting.
I had to implement my own decorators to export the totals for some columns that
was computed by displaytag,
and when doing so I remember reading that the default displaytag export
implementation ONLY exports the column data.
----- Original Message -----
From: [EMAIL PROTECTED]
To: displaytag-user@lists.sourceforge.net
Sent: Wednesday, September 24, 2008 1:15 PM
Subject: [displaytag-user] Export footer and caption to excel/pdf
Hello,
I am exporting all data from a table to excel and pdf. It works ok with
the columns, but I can´t export the footer and caption tag. I have tryed with
versions 1.1 and 1.1.1, but it don´t go with any of them. My code is similar to
the example called "WYSIWYG data exporting" witch is in the displaytag´s web,
only, I don´t use decorators: (it work in HTML view, but not in pdf and excel)
----------------------------------
export.excel.class=org.displaytag.export.ExcelView
export.pdf.class=org.displaytag.export.PdfView
----------------------------------
----------------------------------
<display:table id="Anios" export="true" name="sessionScope.miArray"
class="tablaEstrecha" defaultsort="1" defaultorder="descending"
requestURI="/miAccion.do">
<display:caption media="html">
<strong>A Caption</strong>
</display:caption>
<display:caption media="excel pdf">A Caption</display:caption>
<display:footer media="html">
<tr>
<td colspan="5"><strong>Sample footer</strong></td>
</tr>
</display:footer>
<display:footer media="excel pdf">Sample footer</display:footer>
<display:column property="anio" titleKey="anio" class="centrado"
sortable="true"/>
<display:column property="att1" titleKey="att1Key" class="centrado"
sortable="true"/>
<display:column property="att2" titleKey="att2Key" class="centrado"
sortable="true"/>
<display:column property="att3" titleKey="att3Key" class="centrado"
sortable="true"/>
<display:column property="att4" titleKey="att4Key" class="centrado"
sortable="true"/>
</display:table>
----------------------------------
Thanks
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------------
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.1/1688 - Release Date: 2008-09-24
06:29
--
Jag använder gratisversionen av SPAMfighter för privata användare.
2678 spam har blivit blockerade hittills.
Betalande användare har inte detta meddelande i sin e-post.
Hämta gratis SPAMfighter här: http://www.spamfighter.com/lsv
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user