title: Primefaces fileDownload JavaScript Error
body: <p>I'm trying to Download a File with the Primefaces fileDownload component. Unfortunately it is not working. I only get an Javascript Error "[window] the response does not contain XML data"</p>
  
  <p>I am using JSF 2.1.6 with Primefaces 3.2, IceFaces Push version 2.0.2 is used to Push data, and some Spring Functions with Spring Version 3.1.0. All Running on a Tomcat 6.0.33.</p>
  
  <p>A Snippet of my xHtml Code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"&gt;
  &lt;h:body&gt;
   &lt;p:layout&gt; 
     ...
     &lt;p:layoutUnit id="east" ... &gt;
       &lt;h:form id="eForm"&gt;
         &lt;p:dataTable ... &gt;
           ...
             &lt;p:row &gt;
               &lt;p:column style="font-weight: bold;"&gt;Attach 1:&lt;/p:column&gt;
                 &lt;p:column&gt;
                   &lt;p:commandLink id="attach1" value="Download" ajax="false" immediate="true"&gt;
                        &lt;p:fileDownload value="#{data.file}" /&gt;
                      &lt;/p:commandLink&gt; 
                    &lt;/p:column&gt;
                  &lt;/p:row&gt;
         &lt;/p:dataTable&gt;
       &lt;/h:form&gt;
      ...
   &lt;/p:layout&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>The FileDownload Bean</p>
  
  <pre><code>@ManagedBean(name = "data")
  @RequestScoped
  public class FileDownload {
  
  private StreamedContent file;
  
  public FileDownload() {
      InputStream stream = ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getResourceAsStream("/resources/images/phone_speaker_x24.png");
      file = new DefaultStreamedContent(stream, "image/jpg", "downloaded_optimus.jpg");
  }
  
  public StreamedContent getFile() {
      return file;
  }
  }
  </code></pre>
  
  <p>The Error from FireBug</p>
  
  <pre><code> [window] the response does not contain XML data  bridge...9208334 (Zeile 1217)
   [window] Error [status: emptyResponse code: 200]: An empty response was received from the server. Check server error logs.
  </code></pre>
  
  <p>There is no Error at the Tomcat Log</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Icefaces is the Problem. Removing all Icefaces Libs the Download works fine. But no IceFaces no Push so.</p>