[ http://jira.codehaus.org/browse/DISPL-245?page=comments#action_59817 ]
Jeff Sheets commented on DISPL-245: ----------------------------------- I want to use the same caption for all types. But I did try your test by using: <display:caption media="html pdf rtf"> But I still do not see the caption on my pdf. It is showing fine on the html page. PDF exporting is working fine (well, except for the missing caption), but I get this exception when trying to RTF export: 2006-03-01 11:42:26,024 [WEST.jasheets.GFbWfXNShJ] ERROR DefaultItextExportView Exception: [.DefaultItextExportView] !DefaultItextExportView.errorexporting! Cause: null javax.servlet.jsp.JspException at org.displaytag.render.TableWriterTemplate.writeTable(TableWriterTemplate.java:161) at org.displaytag.export.DefaultItextExportView.doExport(DefaultItextExportView.java:73) at org.displaytag.tags.TableTag.writeExport(TableTag.java:1410) at org.displaytag.tags.TableTag.doExport(TableTag.java:1356) at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1227) at jsp_servlet._reports.__callvolumestatsdetail._jspService(__callvolumestatsdetail.java:2360) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:642) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at jsp_servlet._include._staff.__notab._jspService(__notab.java:142) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:642) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at jsp_servlet._include._staff.__querydetail._jspService(__querydetail.java:181) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:642) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at jsp_servlet._include._staff.__layout._jspService(__layout.java:261) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:328) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:140) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.west.spectrum.ui.LoggingFilter.doFilter(LoggingFilter.java:69) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.west.spectrum.ui.SecurityFilter.doFilter(SecurityFilter.java:167) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) > WYSIWYG Exports > --------------- > > Key: DISPL-245 > URL: http://jira.codehaus.org/browse/DISPL-245 > Project: DisplayTag > Type: Improvement > Components: HTML Generation, Export > Versions: 1.1 > Fix For: 1.1 > Attachments: displaytagExamplePatch.txt, displaytagExportPoiPatch.txt, > displaytagPatch.txt, ico_file_rtf.png > > > Request for enhancements of the export facility > 1. The default exporters should render the table as close as possible > to the rendered HTML. When typical business users are presented with the > displaytag export facility, they usually expect the exported Excel or PDF > to > look just like the HTML in their browser; they expect a WYSIWYG rendering. > 2. The export API should encourage reuse of the table-rendering logic > employed to render the table in a JSP. For instance, to render the > grouping > in my PDF export just as it appears in the HTML, I would have had to > re-implement TableTag.groupColumns(). Also, any future changes to the > table rendering would not be included in my PDF export. So, this looked > like a job for the Template Method pattern, which also applies nicely to > the > decorators, to ensure that the HTML and default export > renderings will be in synch. > 3. Include caption in export. > 4. Include footer in export. > 5. Export in RTF format. > The attached patch implements the above enhancements. > <a > href="http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/example-new-export.jsp"> > Here's a live example and a more detailed explanation.</a> > Following are potential additional export enhacements I'm working on. > 1. Use css table styles as style configuration for Excel, PDF, and RTF > exports. > If not practical, provide export style config properties. > 2. Specify Excel formats for columns, e.g., ##.##. > 3. Include smart linking in Excel, PDF, and RTF exports. > 4. Export just the current page, a page range, or all data, especially if > paging is used. > The ui may look like this: > Export options: Excel | PDF | RTF | From: [1] To: [1] (default to this > page) > Export options: Excel | PDF | RTF | From: [1] To: [max] (default to all) > Defaults to exporting what's on the page currently. Default would be > configurable through property. > 6. Set the column width to the max column string value width. > 7. Exporters should support nested tables. > 8. Implement font styles in RTF export, e.g., bold face. > 9. Export in MS Word format using POI. > Related Jira issues: > <ol> > <li>http://jira.codehaus.org/browse/DISPL-194 > <li>http://jira.codehaus.org/browse/DISPL-123 > </ol> > Unit Tests: > The main code change this patch supplies is a refactoring of the > table-rendering > code. As such, the relevant unit test are the existing tests, > <a > href="http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/docs/multiproject/displaytag/junit-report.html"> > all of which succeeded.</a> > -Jorge -- 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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel