title: Using a relative path as the value in a h:graphicImage tag
body: <p>I'm using the h:graphicImage tag in HTML to load an image in a directory different from my current directory. </p>
  
  <p>For example, say my working directory is:</p>
  
  <pre><code>/Users/nameOfUser/NetBeansProjects/MyProject/web
  </code></pre>
  
  <p>and the image is located in directory: </p>
  
  <pre><code>/Users/nameOfUser/Downloads/glassfish4/glassfish/domains/domain1/config/image.png
  </code></pre>
  
  <p>The  tag is located in myHtml.xhtml (this file is in the web folder) and is as follows:</p>
  
  <pre><code>&lt;h:graphicImage value="../../../Downloads/glassfish4/glassfish/domains/domain1/config/image.png"/&gt;
  </code></pre>
  
  <p>I know that the path is correct by checking on command line, however I am receiving an IllegalArgumentException. I tried changing the path so that it was not a relative path. This solved the error however I need a relative path in order to locate the image properly.</p>
  
  <p>Could anyone advise as to why this could be happening? Does this tag not accept relative paths?</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT: I am using library:</p>
  
  <pre><code>xmlns:h="http://xmlns.jcp.org/jsf/html"
  </code></pre>