Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
Workaround Exists:Yes
-
Workaround Description:Hardcode label attribute.
Description
Note from customer:
More issues with outputResource...
This works...
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
value="view"
type="button"
attachment="false"/>
Also This works..
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
label="view"
value="view"
attachment="false"/>
This doesn't
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
label="#{msg.searchResults_link_view}"
value="view"
attachment="false"/>
Note the value binding for label instead of it hard coded that appears to cause problem. hard coding works.....
I get following error
java.lang.NullPointerException
at com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:47)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:54)
at com.icesoft.faces.component.outputresource.OutputResource.getLabel(OutputResource.java:189)
at com.icesoft.faces.component.outputresource.OutputResource$1.withOptions(OutputResource.java:89)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.respond(ResourceDispatcher.java:100)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer$CompressingRequest$1.respond(CompressingServer.java:65)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167)
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:61)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.service(ResourceDispatcher.java:94)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer.service(CompressingServer.java:44)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher.service(ResourceDispatcher.java:41)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
More issues with outputResource...
This works...
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
value="view"
type="button"
attachment="false"/>
Also This works..
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
label="view"
value="view"
attachment="false"/>
This doesn't
<ice:outputResource
resource="#{hc1099rep2008Pdf.resourceMap[hc1099]}" mimeType="application/pdf"
fileName="#{msg.searchResults_link_view}"
label="#{msg.searchResults_link_view}"
value="view"
attachment="false"/>
Note the value binding for label instead of it hard coded that appears to cause problem. hard coding works.....
I get following error
java.lang.NullPointerException
at com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:47)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:54)
at com.icesoft.faces.component.outputresource.OutputResource.getLabel(OutputResource.java:189)
at com.icesoft.faces.component.outputresource.OutputResource$1.withOptions(OutputResource.java:89)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.respond(ResourceDispatcher.java:100)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer$CompressingRequest$1.respond(CompressingServer.java:65)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167)
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:61)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher$ResourceServer.service(ResourceDispatcher.java:94)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.common.standard.CompressingServer.service(CompressingServer.java:44)
at com.icesoft.faces.webapp.http.core.ResourceDispatcher.service(ResourceDispatcher.java:41)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18166 | Mon Jan 12 15:38:01 MST 2009 | yip.ng | Changed to allow the user resource to override some tag attributes using the withOptions() method. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-outputresource-props.xml |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18162 | Thu Jan 08 17:03:30 MST 2009 | yip.ng | Changed anonymous resource class to a named class to prevent value binding exceptions and memory leaks. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
|