I am trying to get totals to export in excel, pdf, and rtf. Excel and RTF are
working fine. I used the example-new-export.jsp as a starting point. I have
my own TotalWrapperTemplate, and decorator classes that extend
MyTotalWrapperTemplate. The ItextTotalWrapper also implements
org.displaytag.render.ItextTableWriter.ItextDecorator. All is well for all
exports except Pdf. The Itext class does not get instantiated. I used a
debugger and the ItextTotalWrapper gets called for Rtf and not Pdf. The Html,
Excel and Rtf exports work fine and include totals. The Pdf export exports
without caption or totals. When Here is my configuration:
in displaytag.properties I set:
export.pdf.class=org.displaytag.export.DefaultPdfExportView
export.pdf=true
in my jsp, I set:
<display:table name="${group.name}" class="simple nocol" defaultsort="1"
uid="${group.name}" ... decorator="myPackage.decorator.MyHtmlTotalWrapper">
<display:setProperty name="export.excel.decorator"
value="myPackage.decorator.MyExcelTotalWrapper"/>
<display:setProperty name="export.rtf.decorator"
value="myPackage.decorator.MyItextTotalWrapper"/>
<display:setProperty name="export.pdf.decorator"
value="myPackage.decorator.MyItextTotalWrapper"/>
<display:column property="name"/>
<display:column property="total" total="true"/>
</displayTable>
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user