This content has been marked as final.
Show 3 replies
-
1. How to access an image as a RichFaces resource?
beanfarmer Apr 15, 2011 4:13 AM (in response to vace117)In a web application you can make use of relative path to the context.
for example: <h:graphicImage value="/img/piture.gif"/>
contextRoot
|
|---- img
|
|--- picture.gif
Abosolute path might be required if we need to deal with File I/O.
-
2. How to access an image as a RichFaces resource?
nbelaevski Apr 15, 2011 5:28 AM (in response to vace117)Hi Val,
try <h:graphicImage value="resource:///resourceName" />
-
3. How to access an image as a RichFaces resource?
vace117 Apr 15, 2011 1:01 PM (in response to nbelaevski)Very nice. Thanks Nick!