title: Need help to display an icon image in a command button
body: <p>Just a basic need but cannot get it to work.
  I would like to have a primefaces button to display my image, without any text.</p>
  
  <p>But what i get is a button that contains only a <code>^</code> character and does NOT displaying the image, which only has a size of 16x16.</p>
  
  <hr>
  
  <p>So, this is the primefaces button :</p>
  
  <pre><code>&lt;p:commandButton image="ui-icon-csv" title="CSV Document" ajax="false"&gt;
      &lt;p:dataExporter type="csv" target="gridRPBDetails" 
          fileName="#{tInputBean.exportFilename}" /&gt;
  &lt;/p:commandButton&gt;
  </code></pre>
  
  <hr>
  
  <p>This is the css file :</p>
  
  <pre><code>.ui-icon-csv {
      background-image: url(images/csv_small.png);
  }
  </code></pre>
  
  <hr>
  
  <p>And this is the generated html for the button :</p>
  
  <pre><code>&lt;button type="submit" onclick=";" 
      name="gridRPBDetails:j_idt82" id="gridRPBDetails:j_idt82" 
      class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" 
      role="button" aria-disabled="false"&gt;
          &lt;span class="ui-button-icon-primary ui-icon ui-icon-csv"&gt;&lt;/span&gt;&lt;span class="ui-button-text"&gt;CSV Document&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <hr>
  
  <p>And to prove the image accessible, i try this URL, and indeed it shows the picture :</p>
  
  <pre><code>http://albert:8080/mywebapp/faces/javax.faces.resource/images/csv_small.png
  </code></pre>
  
  <hr>
  
  <p>Im using tomcat 7, and these are my dependencies :</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
      &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
      &lt;version&gt;2.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
      &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
      &lt;version&gt;2.0.4-b09&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
      &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
      &lt;version&gt;2.0.4-b09&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <hr>
  
  <p>Any ideas what went wrong ?</p>
  
  <p>Thank you !</p>