Hmmm, I'm scratching my head on this one... Your set up looks correct. It's
possible that an old displaytag config for the pdf export view is being picked
up. As a sanity check, could you try configuring the pdf export in your jsp.
<display:setProperty name="export.pdf.class"
value="org.displaytag.export.DefaultPdfExportView" />
<display:setProperty name="export.pdf" value="true" />
Also, make sure pdf is included in your export.types, for instance,
export.types=csv excel xml pdf rtf
If that works, then another config is being picked up.
-Jorge
----- Original Message ----
From: Ann and Mike Mastrota <[EMAIL PROTECTED]>
To: displaytag-user@lists.sourceforge.net
Sent: Wednesday, January 17, 2007 12:26:59 PM
Subject: [displaytag-user] DefaultPdfExportView not getting instantiated
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
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.
http://farechase.yahoo.com/promo-generic-14795097
-------------------------------------------------------------------------
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