[jboss-user] [JBoss Portal Users] - Re: No such method --> org.jboss.portal.portlet.impl.jsr168.

wesleyhales do-not-reply at jboss.com
Sun Aug 23 10:10:02 EDT 2009


Try this when you generate the chart:

  | Object responseObject = FacesContext.getCurrentInstance().getExternalContext().getResponse();
  |       if (responseObject instanceof RenderResponse) {
  |         BufferedRenderResponseWrapper brrw = (BufferedRenderResponseWrapper)responseObject;
  |          RenderResponse response = brrw.getResponse();
  |          response.getPortletOutputStream().write(getFiles().get((Integer)object).getData());
  | 
  |       }else{
  |          //servlet response
  |          stream.write(getFiles().get((Integer)object).getData());
  |       }
  | 
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251028#4251028

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251028



More information about the jboss-user mailing list