This content has been marked as final.
Show 2 replies
-
1. Re: SEAM Excel Export question
nickarls Jun 26, 2009 12:46 PM (in response to sammes.michael.zohner.commerzbank.com)It probably(?) has something to do with the value for the Content-Disposition header in DocumentData being
inline
as default. -
2. Re: SEAM Excel Export question
daniele.canteri Nov 13, 2009 2:51 PM (in response to sammes.michael.zohner.commerzbank.com)I had the same problem and, as I did not find any other way to override the default
inline
in DocumentData, I solved this way:In components.xml specify your own DocumentStore:
<document:document-store class="your.pkg.DocumentStore" />
then add the new class:
package your.pkg.document; import org.jboss.seam.document.DocumentData; public class DocumentStore extends org.jboss.seam.document.DocumentStore { private static final long serialVersionUID = 1L; @Override public void saveData(String id, DocumentData documentData) { documentData.setDisposition("attachment"); super.saveData(id, documentData); } }