ICEfaces
  1. ICEfaces
  2. ICE-4130

OutputResource demo of Component Showcase is not working as a portlet

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8RC1
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      portals portlets
    • Affects:
      Sample App./Tutorial

      Description

      This exception is thrown when trying to download PDF files or the image.

      java.lang.NullPointerException
          org.icefaces.application.showcase.view.bean.examples.component.outputResource.OutputResourceBean.toByteArray(OutputResourceBean.java:77)
          org.icefaces.application.showcase.view.bean.examples.component.outputResource.MyResource.open(OutputResourceBean.java:108)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #18424 Tue Feb 24 16:52:45 MST 2009 deryk.sinotte ICE-4130: Changed resource finding logic to use JSF APIs so that portlet environments are supported.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/bean/examples/component/outputResource/OutputResourceBean.java
        Deryk Sinotte created issue -
        Hide
        Deryk Sinotte added a comment -

        The OutputResource bean of the Component Showcase is using non-portlet friendly logic to retrieve the resources as streams.

        Show
        Deryk Sinotte added a comment - The OutputResource bean of the Component Showcase is using non-portlet friendly logic to retrieve the resources as streams.
        Hide
        Deryk Sinotte added a comment -

        Checked in change that uses JSF APIs to get the resources. Quickly tested on Liferay 5.2.1 as well as plain Tomcat 6 to ensure it works in both environments.

        Show
        Deryk Sinotte added a comment - Checked in change that uses JSF APIs to get the resources. Quickly tested on Liferay 5.2.1 as well as plain Tomcat 6 to ensure it works in both environments.
        Deryk Sinotte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Deryk Sinotte made changes -
        Salesforce Case []
        Fix Version/s 1.8 [ 10161 ]
        Ken Fyten made changes -
        Summary OuputResource demo of Component Showcase is not working as a portlet OutputResource demo of Component Showcase is not working as a portlet
        Salesforce Case []
        Affects [Sample App./Tutorial]
        Ken Fyten made changes -
        Fix Version/s 1.8RC2 [ 10163 ]
        Fix Version/s 1.8 [ 10161 ]
        Ken Fyten made changes -
        Fix Version/s 1.8 [ 10161 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: