[ http://jira.codehaus.org/browse/DISPL-13?page=comments#action_81643 ] 
            
mark commented on DISPL-13:
---------------------------

http://www.solicom.de/mb451_2/58.shtml  - 
http://www.solicom.de/mb451_2/59.shtml  - 
http://www.solicom.de/mb451_2/60.shtml  - 
http://www.solicom.de/mb451_2/61.shtml  - 
http://www.solicom.de/mb451_2/62.shtml  - 
http://www.solicom.de/mb451_2/63.shtml  - 
http://www.solicom.de/mb451_2/64.shtml  - 
http://www.solicom.de/mb451_2/65.shtml  - 
http://www.solicom.de/mb451_2/66.shtml  - 
http://www.solicom.de/mb451_2/67.shtml  - 
http://www.solicom.de/mb451_2/68.shtml  - 
http://www.solicom.de/mb451_2/69.shtml  - 
http://www.solicom.de/mb451_2/70.shtml  - 
http://www.solicom.de/mb451_2/71.shtml  - 
http://www.solicom.de/mb451_2/72.shtml  - 
http://www.solicom.de/mb451_2/73.shtml  - 
http://www.solicom.de/mb451_2/74.shtml  - 
http://www.solicom.de/mb451_2/75.shtml  - 
http://www.solicom.de/mb451_2/76.shtml  - 
http://www.solicom.de/mb451_2/77.shtml  - 
http://www.solicom.de/mb451_2/78.shtml  - 
http://www.solicom.de/mb451_2/79.shtml  - 
http://www.solicom.de/mb451_2/80.shtml  - http://www.solicom.de/mb
 451_2/81.shtml  - http://www.solicom.de/mb451_2/82.shtml  - 
http://www.solicom.de/mb451_2/83.shtml  - 
http://www.solicom.de/mb451_2/84.shtml  - 
http://www.solicom.de/mb451_2/85.shtml  - 
http://www.solicom.de/mb451_2/86.shtml  - 
http://www.solicom.de/mb451_2/87.shtml  - 
http://www.solicom.de/mb451_2/88.shtml  - 
http://www.solicom.de/mb451_2/89.shtml  - 
http://www.solicom.de/mb451_2/90.shtml  - 
http://www.solicom.de/mb451_2/91.shtml  - 
http://www.solicom.de/mb451_2/92.shtml  - 
http://www.solicom.de/mb451_2/93.shtml  - 
http://www.solicom.de/mb451_2/94.shtml  - 
http://www.solicom.de/mb451_2/95.shtml  - 
http://www.solicom.de/mb451_2/96.shtml  - 
http://www.solicom.de/mb451_2/97.shtml  - 
http://www.solicom.de/mb451_2/98.shtml  - 
http://www.solicom.de/mb451_2/99.shtml  - 
http://www.solicom.de/mb451_2/100.shtml  - 
http://www.solicom.de/mb451_2/101.shtml  - 
http://www.solicom.de/mb451_2/102.shtml  - 
http://www.solicom.de/mb451_2/103.shtml  - 
http://www.solicom.de/mb451_2/104.shtml  - 
 http://www.solicom.de/mb451_2/105.shtml  - 
http://www.solicom.de/mb451_2/106.shtml  - 
http://www.solicom.de/mb451_2/107.shtml  - 
http://www.solicom.de/mb451_2/108.shtml  - 
http://www.solicom.de/mb451_2/109.shtml  - 
http://www.solicom.de/mb451_2/110.shtml  - 
http://www.solicom.de/mb451_2/111.shtml  - 
http://www.solicom.de/mb451_2/112.shtml  - 
http://www.solicom.de/mb451_2/113.shtml  - 
http://www.solicom.de/mb451_2/114.shtml  - 
http://www.solicom.de/mb451_2/115.shtml  - 
http://www.solicom.de/mb451_2/116.shtml  - 
http://www.solicom.de/mb451_2/117.shtml  - 
http://www.solicom.de/mb451_2/118.shtml  - 
http://www.solicom.de/mb451_2/119.shtml  - 
http://www.solicom.de/mb451_2/120.shtml  - 
http://www.solicom.de/mb451_2/121.shtml  - 
http://www.solicom.de/mb451_2/122.shtml  - 
http://www.solicom.de/mb451_2/123.shtml  - 
http://www.solicom.de/mb451_2/124.shtml  - 
http://www.solicom.de/mb451_2/125.shtml  - 
http://www.solicom.de/mb451_2/126.shtml  - 
http://www.solicom.de/mb451_2/127.shtml  - 
 http://www.solicom.de/mb451_2/128.shtml  - 
http://www.solicom.de/mb451_2/129.shtml  - 
http://www.solicom.de/mb451_2/130.shtml  - 
http://www.solicom.de/mb451_2/131.shtml  - 
http://www.solicom.de/mb451_2/132.shtml  - 
http://www.solicom.de/mb451_2/133.shtml  - 
http://www.solicom.de/mb451_2/134.shtml  - 
http://www.solicom.de/mb451_2/135.shtml  - 
http://www.solicom.de/mb451_2/136.shtml  - 
http://www.solicom.de/mb451_2/137.shtml  - 
http://www.solicom.de/mb451_2/138.shtml  - 
http://www.solicom.de/mb451_2/139.shtml  - 
http://www.solicom.de/mb451_2/140.shtml  - 
http://www.solicom.de/mb451_2/141.shtml  - 
http://www.solicom.de/mb451_2/142.shtml  - 
http://www.solicom.de/mb451_2/143.shtml  - 
http://www.solicom.de/mb451_2/144.shtml  - 
http://www.solicom.de/mb451_2/145.shtml  - 
http://www.solicom.de/mb451_2/146.shtml  - 
http://www.solicom.de/mb451_2/147.shtml  - 
http://www.solicom.de/mb451_2/148.shtml  - 
http://www.solicom.de/mb451_2/149.shtml  - 
http://www.solicom.de/mb451_2/150.shtml  - 
 http://www.solicom.de/mb451_2/151.shtml  - 
http://www.solicom.de/mb451_2/152.shtml  - 
http://www.solicom.de/mb451_2/153.shtml  - 
http://www.solicom.de/mb451_2/154.shtml  - 
http://www.solicom.de/mb451_2/155.shtml  - 
http://www.solicom.de/mb451_2/156.shtml  - 

> PDF Export
> ----------
>
>                 Key: DISPL-13
>                 URL: http://jira.codehaus.org/browse/DISPL-13
>             Project: DisplayTag
>          Issue Type: Improvement
>          Components: Export
>    Affects Versions: 1.0 RC2
>            Reporter: fabrizio giustina
>         Assigned To: fabrizio giustina
>             Fix For: 1.0 RC2
>
>         Attachments: dt_pdf.diff, dt_pdf_java.zip
>
>          Time Spent: 1 day
>
> ====
> imported from sf tracker
> id 1026408 
> submitted by Ivan Markov - ivan_markov
> http://sourceforge.net/tracker/index.php?func=detail&group_id=73068&atid=536613&aid=1026408
>  
> ====
> PDF Export
> ----------
> Our main goal while developing this patch was to do as little changes as 
> possible in the existing display tag code.
> You know - the smaller the patch, the easier to be accepted. :)
> We had to change a little the code of BaseExportView, ExportViewFactory & 
> MediaTypeEnum.
> The changes in these classes revolve around our idea to make the export stuff 
> in display tag *extensible*.
> The current set of exported formats supported by DT (CSV, Tab-delimited 
> Excel, HTML, XML) all do their stuff relying on core J2SE features only.
> PDF, however, is complex enough so as we needed to drag a dependency on IText 
> (http://www.lowagie.com/iText/). Since we didn't want to make display tag 
> itself dependent on IText, we instead provided means for the user to register 
> in DT a new exporter.
> With our patch, user needing custom export has to:
> a.1) Write the exporter, by extending BaseExportView. That's what we did for 
> PDF: our PDFView extends BaseExportView.
> a.2) The exporter should have a constructor with the same parameters as the 
> one in BaseExportView, because our patch uses reflection to instantiate the 
> appropriate exporter.
> b) Somewhere in the webapp, probably in the init() method of the main 
> servlet, the user needs to issue:
> MediaTypeEnum.registerView("<new-exporter-name>", <new-exporter-class>);
> For our PDF export, we'll do:
> MediaTypeEnum.registerView("pdf", PdfView.class);
> We'll consider providing means for specifying this in the table.properties 
> file too.
> Note that only the changes to BaseExportView/ExportViewFactory/MediaTypeEnum 
> are important.
> Our PDFView does not and SHOULD NOT rely on any other DT API.
> I would imagine, you guys wouldn't like dependency on IText, so PDFView can 
> find its way in an optional package.
> In future, I suppose XLS export may emerge, based on JExcelAPI 
> (jexcelapi.sf.net), which provides richer formatting means than the regular 
> CSV/Tab-delimited Excel export.
> Compiling The Code
> ------------------
> You can try to apply the attached paging_and_pdf.diff file (diff to latest 
> CVS as of Sep 11 2004). Note that it will introduce dependency on IText, 
> because of PDFView, which is included for demoing.
> You can also just unzip the attached archive which contains the latest CVS DT 
> patched. Also, Eclipse project files are provided within.
> !NOTE: You need to move all 3rd party jar dependencies in WEB-INF/lib (for 
> demoing) INCLUDING itext-1.02b-custom.jar (from 
> http://www.lowagie.com/iText/download.html)
> so that you can just point the servlet engine to ... /displaytag2/src/webapp .

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
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-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to