ICEfaces
  1. ICEfaces
  2. ICE-6371

ClassCastException when using fileEntry in Portlets

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 , Liferay

      Description

      The real problem is a dependency on a Servlet request:

      ] java.lang.ClassCastException: com.liferay.portlet.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
          at org.icefaces.component.fileentry.PushUtils.createPushId(PushUtils.java:155)
          at org.icefaces.component.fileentry.PushUtils.getPushId(PushUtils.java:114)
          at org.icefaces.component.fileentry.FormScriptWriter.encodeBegin(FormScriptWriter.java:88)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)

        Activity

        Hide
        Ken Fyten added a comment -

        Please retest with Liferay portal.

        Show
        Ken Fyten added a comment - Please retest with Liferay portal.
        Hide
        Ted Goddard added a comment -

        Deryk has found a portlet implementation of commons fileupload, but it requires an action request:

        http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/portlet/package-summary.html

        Initial investigation will make use of core/src/main/java/org/icefaces/impl/push/servlet/ProxyHttpServletRequest.java passed to commons fileupload.

        Show
        Ted Goddard added a comment - Deryk has found a portlet implementation of commons fileupload, but it requires an action request: http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/portlet/package-summary.html Initial investigation will make use of core/src/main/java/org/icefaces/impl/push/servlet/ProxyHttpServletRequest.java passed to commons fileupload.
        Hide
        Deryk Sinotte added a comment -

        A number of changes have been made to the code in the fileEntry component to make it portlet friendly.

        Show
        Deryk Sinotte added a comment - A number of changes have been made to the code in the fileEntry component to make it portlet friendly.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: