What's the trick to getting DocumentStore tags <s:resource> and <s:download> to work?
I'm running Seam 2.2.0.GA, RichFaces 3.3.2.SR1 and JBoss 5.1.0.GA
I have the following configured as prescribed by the docs:
web.xml <servlet> <servlet-name>Document Store Servlet</servlet-name> <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Document Store Servlet</servlet-name> <url-pattern>/seam/docstore/*</url-pattern> </servlet-mapping> resource.xhtml <s:resource xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" data="#{file.fileData}" contentType="text/html" disposition="attachment" fileName="test.txt"/> test.xhtml <s:download src="/view/resource.xhtml"> test </s:download> File.java public byte[] getFileData() { return "This is a test".getBytes(); }
The result is 404 resource /myapp/view/test.txt is not available.
Would appreciate any insights.
Try browsing to myapp/view/resource.seam instead. Is it also not available?