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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: