Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:n/a
-
Assignee Priority:P2
-
ICEsoft Forum Reference:
-
Support Case References:
Description
<ice:outputResource resource="#{bean.resource}"/>
Users could use our own resource implementations or implement their own Resource classes.
-
Hide
- OutputResourceComponent-patched.war
- 151 kB
- Mircea Toma
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/.DS_Store 6 kB
- WEB-INF/classes/Bean$1.class 0.8 kB
- WEB-INF/classes/Bean.class 1 kB
- WEB-INF/classes/.../OutputResource.class 2 kB
- WEB-INF/.../OutputResourceRenderer.class 2 kB
- WEB-INF/classes/.../OutputResourceTag.class 3 kB
- WEB-INF/custom.taglib.xml 0.5 kB
- WEB-INF/custom.tags.tld 2 kB
- WEB-INF/faces-config.xml 1 kB
- WEB-INF/lib/.DS_Store 6 kB
- WEB-INF/web.xml 3 kB
- img/bgslice_topmain.jpg 0.5 kB
- img/checkbox-checked.gif 0.2 kB
- img/checkbox-partial.gif 0.1 kB
- img/checkbox-unchecked.gif 0.1 kB
- img/connect_active.gif 3 kB
- img/connect_caution.gif 1 kB
- img/connect_disconnected.gif 0.4 kB
- img/connect_idle.gif 0.3 kB
- img/logo.jpg 2 kB
- img/Thumbs.db 15 kB
- index.jsp 0.0 kB
- main.jspx 1 kB
- src/.DS_Store 6 kB
- src/Bean.java 0.9 kB
- src/com/.DS_Store 6 kB
- src/com/icesoft/.DS_Store 6 kB
- src/com/icesoft/faces/.DS_Store 6 kB
- src/com/icesoft/.../component/.DS_Store 6 kB
-
Hide
- OutputResourceComponent.zip
- 6.04 MB
- Philip Breau
-
- OutputResourceComponent/.classpath 2 kB
- OutputResourceComponent/.mymetadata 0.3 kB
- OutputResourceComponent/.project 1 kB
- OutputResourceComponent/.../OutputResource.java 2 kB
- OutputResourceComponent/.../OutputResourceRenderer.java 2 kB
- OutputResourceComponent/.../OutputResourceTag.java 4 kB
- OutputResourceComponent/.../DynamicImageBean.java 1.0 kB
- OutputResourceComponent/.../OutputCaptchaBean.java 0.6 kB
- OutputResourceComponent/.../OutputExportBean.java 2 kB
- OutputResourceComponent/.../OutputResourceBean.java 2 kB
- OutputResourceComponent/src/Person.java 2 kB
- OutputResourceComponent/.../bgslice_topmain.jpg 0.5 kB
- OutputResourceComponent/.../checkbox-checked.gif 0.2 kB
- OutputResourceComponent/.../checkbox-partial.gif 0.1 kB
- OutputResourceComponent/.../checkbox-unchecked.gif 0.1 kB
- OutputResourceComponent/.../connect_active.gif 3 kB
- OutputResourceComponent/.../connect_caution.gif 1 kB
- OutputResourceComponent/.../connect_disconnected.gif 0.4 kB
- OutputResourceComponent/.../connect_idle.gif 0.3 kB
- OutputResourceComponent/WebRoot/.../logo.jpg 2 kB
- OutputResourceComponent/.../Thumbs.db 15 kB
- OutputResourceComponent/.../index.jsp 0.1 kB
- OutputResourceComponent/.../MANIFEST.MF 0.0 kB
- OutputResourceComponent/.../outputResource.jspx 1 kB
- OutputResourceComponent/.../.faces-config.mex 0.1 kB
- OutputResourceComponent/.../OutputResource.class 2 kB
- OutputResourceComponent/.../OutputResourceRenderer.class 3 kB
- OutputResourceComponent/.../OutputResourceTag.class 3 kB
- OutputResourceComponent/.../DynamicImageBean.class 2 kB
- OutputResourceComponent/.../OutputCaptchaBean.class 1 kB
-
Hide
- OutputResourceComponent.zip
- 6.03 MB
- Philip Breau
-
- OutputResourceComponent/.classpath 2 kB
- OutputResourceComponent/.mymetadata 0.3 kB
- OutputResourceComponent/.project 1 kB
- OutputResourceComponent/.../OutputResource.java 3 kB
- OutputResourceComponent/.../OutputResourceRenderer.java 2 kB
- OutputResourceComponent/.../OutputResourceTag.java 4 kB
- OutputResourceComponent/.../OutputResourceBean.java 2 kB
- OutputResourceComponent/.../bgslice_topmain.jpg 0.5 kB
- OutputResourceComponent/.../button-submit.gif 0.8 kB
- OutputResourceComponent/WebRoot/.../logo.jpg 2 kB
- OutputResourceComponent/.../Thumbs.db 15 kB
- OutputResourceComponent/.../index.jsp 0.1 kB
- OutputResourceComponent/.../MANIFEST.MF 0.0 kB
- OutputResourceComponent/.../outputResource.jspx 2 kB
- OutputResourceComponent/.../.faces-config.mex 0.1 kB
- OutputResourceComponent/.../OutputResource$1.class 2 kB
- OutputResourceComponent/.../OutputResource.class 3 kB
- OutputResourceComponent/.../OutputResourceRenderer.class 3 kB
- OutputResourceComponent/.../OutputResourceTag.class 3 kB
- OutputResourceComponent/.../OutputResourceBean.class 2 kB
- OutputResourceComponent/.../custom.taglib.xml 0.5 kB
- OutputResourceComponent/.../custom.tags.tld 3 kB
- OutputResourceComponent/.../faces-config.xml 1 kB
- OutputResourceComponent/.../backport-util-concurrent.jar 319 kB
- OutputResourceComponent/.../commons-beanutils.jar 184 kB
- OutputResourceComponent/.../commons-collections.jar 558 kB
- OutputResourceComponent/.../commons-digester.jar 140 kB
- OutputResourceComponent/.../commons-discovery.jar 70 kB
- OutputResourceComponent/.../commons-el.jar 110 kB
- OutputResourceComponent/.../commons-fileupload.jar 87 kB
-
Hide
- OutputResourceComponent.war
- 6.05 MB
- Philip Breau
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/Bean.class 2 kB
- WEB-INF/classes/.../OutputResource.class 2 kB
- WEB-INF/.../OutputResourceRenderer.class 2 kB
- WEB-INF/classes/.../OutputResourceTag.class 3 kB
- WEB-INF/custom.taglib.xml 0.5 kB
- WEB-INF/custom.tags.tld 2 kB
- WEB-INF/faces-config.xml 1 kB
- WEB-INF/lib/backport-util-concurrent.jar 343 kB
- WEB-INF/lib/commons-beanutils.jar 116 kB
- WEB-INF/lib/commons-collections.jar 167 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-fileupload.jar 52 kB
- WEB-INF/lib/commons-logging.jar 31 kB
- WEB-INF/lib/el-api.jar 24 kB
- WEB-INF/lib/el-ri.jar 97 kB
- WEB-INF/lib/icefaces-comps.jar 1.46 MB
- WEB-INF/lib/icefaces-facelets.jar 575 kB
- WEB-INF/lib/icefaces.jar 707 kB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 679 kB
- WEB-INF/lib/jstl.jar 20 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/standard.jar 384 kB
- WEB-INF/lib/xercesImpl.jar 1.15 MB
- WEB-INF/lib/xml-apis.jar 190 kB
- WEB-INF/web.xml 3 kB
- img/Thumbs.db 15 kB
- img/bgslice_topmain.jpg 0.5 kB
- img/checkbox-checked.gif 0.2 kB
-
Hide
- Orc.war
- 6.84 MB
- Asdf Asdf
-
- META-INF/MANIFEST.MF 0.1 kB
- WEB-INF/.faces-config.mex 0.1 kB
- WEB-INF/Syllabus - Introduction to JSF and ICEfaces.pdf 48 kB
- WEB-INF/classes/DynamicImageBean.class 2 kB
- WEB-INF/classes/DynamicImageBean.java 1.0 kB
- WEB-INF/classes/OutputCaptchaBean.class 1 kB
- WEB-INF/classes/OutputCaptchaBean.java 0.6 kB
- WEB-INF/classes/OutputExportBean.class 3 kB
- WEB-INF/classes/OutputExportBean.java 2 kB
- WEB-INF/classes/OutputResourceBean.class 2 kB
- WEB-INF/classes/OutputResourceBean.java 2 kB
- WEB-INF/classes/Person.class 2 kB
- WEB-INF/classes/Person.java 2 kB
- WEB-INF/classes/.../OutputResource$1.class 2 kB
- WEB-INF/classes/.../OutputResource.class 2 kB
- WEB-INF/classes/.../OutputResource.java 3 kB
- WEB-INF/.../OutputResourceRenderer.class 3 kB
- WEB-INF/.../OutputResourceRenderer.java 2 kB
- WEB-INF/classes/.../OutputResourceTag.class 3 kB
- WEB-INF/classes/.../OutputResourceTag.java 4 kB
- WEB-INF/classes/.../ApplicationBean1.class 1.0 kB
- WEB-INF/classes/.../ApplicationBean1.java 4 kB
- WEB-INF/classes/orc/Bundle.properties 0.1 kB
- WEB-INF/classes/orc/Page1.class 1 kB
- WEB-INF/classes/orc/Page1.java 5 kB
- WEB-INF/classes/orc/RequestBean1.class 1 kB
- WEB-INF/classes/orc/RequestBean1.java 4 kB
- WEB-INF/classes/orc/SessionBean1.class 1 kB
- WEB-INF/classes/orc/SessionBean1.java 4 kB
- WEB-INF/custom.taglib.xml 0.5 kB
-
- ICE-2348.patch
- 34 kB
- Mircea Toma
Issue Links
- is duplicated by
-
ICE-2810 provide file download component
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Mircea Toma noted that 'The renderer needs to render a target="blank" attribute..." I'm new to ICEfaces, but this seems strikingly similar to the reserved [link] target attribute value of "_blank", which has the following special meaning: "The user agent should load the designated document in a new, unnamed window." (http://www.w3.org/TR/html401/types.html#type-frame-target). Should this have been made "_blank" instead of "blank"?
hello!
i think there is still a bug in the OutputResourceComponent when using EL for the fileName attribute. i basically downloaded the .war file attached to this case, and added a few lines so it should be easily reproducible:
in OutputResourceBean.java:
public String getDynamicFileName()
{ return "i_am_almost_dynamic.pdf"; }and in outputResource.jspx:
<cust:outputResource id="otherPdf"
resource="#
"
mimeType="application/pdf"
value="Click to load pdf with dynamic filename"
fileName="#
"
/>
after clicking on "Click to load pdf with dynamic filename" the app dies with the following stack trace:
StandardWrapperValve[Blocking Servlet]: PWC1406: Servlet.service() for servlet Blocking Servlet threw exception
java.lang.NullPointerException: FacesContext -> null
at javax.faces.component.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:98)
at com.icesoft.faces.component.outputResource.OutputResource.getFileName(OutputResource.java:84)
at com.icesoft.faces.component.outputResource.OutputResource$1.withOptions(OutputResource.java:46)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.respond(ResourceDispatcher.java:120)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer$CompressingRequest$1.respond(CompressingServer.java:49)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer$CompressingRequest.respondWith(CompressingServer.java:45)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.service(ResourceDispatcher.java:115)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer.service(CompressingServer.java:29)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher.service(ResourceDispatcher.java:39)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:151)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:54)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
i will attached my .war file after this message.
my environment is netbeans 6.5, icefaces from svn (29.09.2008), glassfish2 that was bundled with netbeans.
best regards, armin walland
slightly modified version of the OutputResourceComponent-demoapp to illustrate exception when using EL in "fileName" attribute.
Re-opened. Looks like we forgot to commit some files for this that are required, and QA didn't get the tests so it didn't fail... (oops).
Let's make this right for 1.7.2 final.
checked into 1.7 branch and head
sample implementation and test case