title: Displaying an image from Local Network to JSF Web Application
body: <p>I've some image file in my Local Network and I want to display them in the DataTable in JSF. I'm using JSF2.0 and Tomahawk 1.1.13. Below is the JSF code.</p>
  
  <pre><code>    &lt;t:dataTable newspaperColumns="3" value="#{startupBean.colorList}"     newspaperOrientation="horizontal" var="colorBO"&gt;
  
      &lt;f:facet name="spacer"&gt;
     &lt;f:verbatim&gt;&lt;/f:verbatim&gt;
     &lt;/f:facet&gt;
     &lt;h:column&gt;
      &lt;h:graphicImage id="colors" alt="jsf-sun" url="#{colorBO.color_url}"&gt; 
      &lt;/h:graphicImage&gt;
      &lt;/h:column&gt;
      &lt;/t:dataTable&gt;
  </code></pre>
  
  <p>I'm giving the path of the file as "\\root\sub\sub\xxx.jpg" in my backing bean. But when the JSF page renders, it displays a default icon. When I right click on the icon and check the properties, the below is what I get.</p>
  
  <p><a href="http://localhost:8080/projname//root/sub/sub/xxx.jpg" rel="nofollow noreferrer">http://localhost:8080/projname//root/sub/sub/xxx.jpg</a></p>
  
  <p>I tries using both backslash and forward slash in the path name. No change in the output though. I dont' know how the http part gets into the file path. I'm missing something for sure.</p>