1 Reply Latest reply on Jan 15, 2010 6:14 PM by marco ronconi

    Jboss portal 2.7.2 + seam portlet bridge 2.0.0-BETA download file

    marco ronconi Newbie

      Hello,
      i'have developed a portlet with :


      seam 2.2.0.GA
      portlet bridge 2.0.0-BETA
      Jboss AS 4.2.3 
      Jboss portal 2,7.2



      i'have an action seam for the download of file pdf....


      "....
      FacesContext fc = FacesContext.getCurrentInstance();
      RenderResponse renderResponse = (RenderResponse) fc.getExternalContext().getResponse();
      OutputStream os = renderResponse.getPortletOutputStream();
      ...."


      but returns the following class cast exception :


      java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl cannot be cast to javax.portlet.RenderResponse


      Do you have any tips ?


      Tnk.
      Cheers !






      but return a class cast exception

        • 1. Re: Jboss portal 2.7.2 + seam portlet bridge 2.0.0-BETA download file
          marco ronconi Newbie

          Hello,
          i'have developed a portlet with :


          seam 2.2.0.GA


          portlet bridge 2.0.0-BETA


          Jboss AS 4.2.3 


          Jboss portal 2,7.2



          i'have an action seam for the download of file pdf....




          .... 
          FacesContext fc = FacesContext.getCurrentInstance();
          
          RenderResponse renderResponse = (RenderResponse) fc.getExternalContext().getResponse();
          
          OutputStream os = renderResponse.getPortletOutputStream();
          ....





          but returns the following class cast exception :


          java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl cannot be cast to javax.portlet.RenderResponse


          Do you have any tips ?


          Tnk.
          Cheers !