Re: [displaytag-user] export problem PDF and HTML href and breaktags
Brought to you by:
fgiust
From: Raghu N. <nal...@gm...> - 2008-01-30 21:49:34
|
Thanks Indeed. This helped. On Jan 30, 2008 3:05 PM, Paul Cooper <pc...@em...> wrote: > I usually just do this: > > > > <display:column title=3D"HTML<br/>Text" property=3D"someText" media=3D"ht= ml"/> > > <display:column title=3D"HTML Text" property=3D"someText" media=3D"pdf"/> > > > > The first column only will be displayed in the browser, the second will > only display in the PDF. It's the same data, just different ways of > displaying it. > > > > *From:* dis...@li... [mailto: > dis...@li...] *On Behalf Of *Raghu Nalla= n > *Sent:* Wednesday, January 30, 2008 3:42 PM > *To:* dis...@li... > *Subject:* Re: [displaytag-user] export problem PDF and HTML href and > breaktags > > > > Thanks for response, I would appreciate if someone can explain a little > bit more in detail. > > >From the documentation and your response, I figured that I need to have = a > decorator for each of the media types PDF/CSV etc. > Do we have any ready-made decorators to do this job? > > I tried including > > <display:setProperty name=3D"decorator.media.html" value=3D"org.disp= laytag.sample.decorators.HtmlTotalWrapper" /> > > <display:setProperty name=3D"decorator.media.pdf" value=3D"org.disp= laytag.sample.decorators.ItextTotalWrapper" /> > > in my displaytable tag, anticipating that it would render the pdf properl= y > without inserting html in it. > I am using a list of DataTransfer objects to be rendered by displaytag. > When I run with these setting, it complains that ReportableListObject is > not expecting a DTO object, perhaps a ClassCastException. > > > Thanks, > Nallan > > On Jan 30, 2008 12:51 PM, Paul Cooper <pc...@em...> wrote: > > Use the media=3D option, and have separate columns for export=85 > > > > *From:* dis...@li... [mailto: > dis...@li...] *On Behalf Of *Raghu Nalla= n > *Sent:* Wednesday, January 30, 2008 12:08 PM > *To:* dis...@li... > *Cc:* min...@ho... > *Subject:* Re: [displaytag-user] export problem PDF and HTML href and > breaktags > > > > Looks like there is a limit on file size, removing the attachment and > fwding the query again. Apologies for resubmission. > > On Jan 30, 2008 10:58 AM, Raghu Nallan <nal...@gm...> wrote: > > I am having the same problem. When I export the contents to PDF, display > tag seem to insert the > HTML tags into the PDF. It works fine for CSV. > > This is urgent,please replay asap. > > Here is my display table > > <display:table name=3D"buyerPaymentsList" export=3D"true" > > requestURI=3D"/buyer/showBuyerBatchPaymentSummary.do" > style=3D"" class=3D"dataSet simple-gray"> > > <display:setProperty name=3D" > paging.banner.placement" value=3D"both"></display:setProperty> > <display:setProperty name=3D" > paging.banner.all_items_found">{0} {2} found </display:setProperty> > <display:setProperty name=3D" > paging.banner.some_items_found">{2}-{3} of {0}</display:setProperty> > <display:setProperty name=3D" > paging.banner.full"><a href=3D"{2}">Previous </a>{0}<a href=3D"{3}"> > Next</a></display:setProperty> > <display:setProperty name=3D" > paging.banner.first"> Previous{0} <a > href=3D"{3}">Next</a> </display:setProperty> > <display:setProperty name=3D" > paging.banner.last"><a href=3D"{2}">Previous </a>{0} Next > </display:setProperty> > <display:setProperty name=3D" > paging.banner.page.separator" value=3D" "></display:setProperty> > > > <display:column href=3D" > showBuyerPaymentDetail.do" > paramId=3D"sysPaymentId" > paramProperty=3D"sysPaymentId" > property=3D"partnerPaymentId" > sortable=3D"true" title=3D"Payment ID" /> > > <display:column property=3D"payeeName" > sortable=3D"true" title=3D" Payee's Name " /> > <display:column property=3D"paymentAmount" > sortable=3D"true" decorator=3D" > com.mastercard.eis.epg.portal.action.common.DisplayTagAmounDecorator" > title=3D" Payment <br />Amount " /> > <display:column property=3D"paymentDate" > sortable=3D"true" decorator=3D" > com.mastercard.eis.epg.portal.action.common.DisplayTagDateDecorator" > title=3D"Payment <br />Date" /> > <display:column property=3D"paymentType" > sortable=3D"true" title=3D"Payment <br />Type" /> > <display:column > property=3D"paymentProcessingStatus" title=3D"Payment <br/> Status" > sortable=3D"true" ></display:column> > > <display:column property=3D"processingMethod" > sortable=3D"true" title=3D"Processing <br/> Method" /> > </display:table> > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > displaytag-user mailing list > dis...@li... > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > displaytag-user mailing list > dis...@li... > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > |