IllegalStateException: No active event context with s:graphicImage and a call to
"window.print()" function in IE
----------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3688
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3688
Project: Seam
Issue Type: Bug
Components: JSF Controls
Affects Versions: 2.1.0.SP1, 2.0.2.SP1
Reporter: Denis Forveille
We have a page with an "s:graphicImage" tag like this <s:graphicImage
value="#{materielDetailVueCtrl.form.image}" />
On the page there is a button that performs a call to
"javascript:window.print();"
When used in firefox, everything works fine.
With IE 6, when we use this button, we receive a "No active event context"
exception (See attached traceback)
In FF everything works fine because, I think, the image is cached by default
In IE 6, the image is not cached.
Besides the exception, one solution would be to add the possibility to add a parameter to
the s:graphicImage tag that will add a header in the response send for the mage to the
browser
For now we've hard-coded the following in
org.jboss.seam.ui.graphicImage.GraphicImageResource :
response.addHeader("Cache-Control","max-age=1800,must-revalidate");
That make IE 6 happy...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira