-
1. Re: s:graphicImage doesn't render image over JBoss 5.1.0
serkan Feb 9, 2012 3:19 AM (in response to jluna)I'm having the same problem.
S:graphicImage doesn't show any picture when I provide a byte[].
I'm using Seam 2.2.1.final and Jboss 5.1ga.
Any help is appreciated !
-
2. Re: s:graphicImage doesn't render image over JBoss 5.1.0
serkan Feb 9, 2012 7:02 AM (in response to jluna)I figured out why it doesn't work anymore !
s:graphicImage makes/generares the following URL in your <img> tag:
http://[server]:[host]/[context-root]/seam/resource/graphicImage/[your-picture]
This should be:
http://[server]:[host]/[context-root]/resource/graphicImage/[your-picture]
When you use the latter URL then the image shows up.
To fix this, I've changed the mapping of the Seam Resource Servlet as follows in my web.xml:
/seam/resource
and not /resource which was the default.
This works for s:graphicImage now and I hope that it doesn't break other functionalities !
-
3. Re: s:graphicImage doesn't render image over JBoss 5.1.0
juanjava Feb 21, 2012 2:24 PM (in response to serkan)I've got this issue since months...
I always got this on my web.xml:
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
It doesn't work. Always the firebug error:
"NetworkError: 404 Not Found - http://localhost:8080/app/seam/resource/graphicImage/org.jboss.seam.ui.GraphicImageStore.-5ed9f49e-135a13d2c8f--7fed.png"
Any more clues?
-
4. Re: s:graphicImage doesn't render image over JBoss 5.1.0
serkan Feb 23, 2012 9:51 AM (in response to juanjava)Check via your browser whether:
show the image.
(note: I removed /seam from the url)
Anyways, the solution I described above worked for me. But in the end I switched from blobs to filedisk since the latter is much faster and doesn't kill my performance.
s:graphicImage is very slow with rendering if the file size is too big.
-
5. Re: s:graphicImage doesn't render image over JBoss 5.1.0
juanjava Feb 23, 2012 12:56 PM (in response to serkan)Yeah... I'm about to implement filedisk too... this image thing is making me insane...
Thanks!
Edit: nevermind. It works. There was dirty code I didn't saw on the background when page loads...