[ http://jira.codehaus.org/browse/DISPL-344?page=comments#action_74754 ] andy pruitt commented on DISPL-344: -----------------------------------
Here's the approach we use locally, ymmv. It's really pretty simple. (Pegboard is our portal server.) 1) We have the export filter running against all portal requests. 2) All portlet urls are rewritten to be render urls by a RequestHelper 3) If an export is run, our local table tag will remove the export flag from the render parameters after the export has been written public class MyTableTag extends TableTag { protected void writeExport(ExportView exportView) throws IOException, JspException { super.writeExport(exportView); HttpServletRequest httpRequest = (HttpServletRequest) pageContext.getRequest(); PegboardWindow pegboardWindow = (PegboardWindow)httpRequest.getAttribute(PegboardWindow.CURRENT_WINDOW); if ( pegboardWindow == null ){ return; } Map params = pegboardWindow.getRenderParameters(); ParamEncoder encoder = new ParamEncoder( getId() ); params.remove( encoder.encodeParameterName(TableTagParameters.PARAMETER_EXPORTTYPE) ); pegboardWindow.setRenderParameters( params ); } } > Export failure running as Liferay portlet > ----------------------------------------- > > Key: DISPL-344 > URL: http://jira.codehaus.org/browse/DISPL-344 > Project: DisplayTag > Issue Type: Bug > Components: Export > Affects Versions: 1.1 > Reporter: Bill Joy > Priority: Blocker > Attachments: Capture-05-18-00001.png > > > When click on any of the Export options, the content of the portlet is > replaced with the exported data. > If do not add the "displaytag extensions" for JSR 168 portlet support, the > export feature works correctly. > I consider this a blocker because without the portlet extensions the > "pagesize" table attribute has unacceptable behavior (so I have to choose > which feature I prefer to enable). -- 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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel