I trie to get working the EL tag that i can show an image from my resources folder but it dosen't seem to work. The following example:
my xhtml
<p:dock position="bottom">
<p:menuitem value="Home" icon="#{resource['icon:img/exit.png']}" url="#" />
</p:dock>
And also i tried:
<p:menuitem value="Home" icon="#{resource['img/exit.png']}" url="#" />
<p:menuitem value="Home" icon="#{resources['img/exit.png']}" url="#" />
<p:menuitem value="Home" icon="#{resource['default:img/exit.png']}" url="#" />
<p:menuitem value="Home" icon="#{resources['img:exit.png']}" url="#" />
All of the above didn't work. Whats wrong? I have set the web.inf tag as follow:
<context-param>
<param-name>javax.faces.WEBAPP_RESOURCES_DIRECTORY</param-name>
<param-value>/WEB-INF/resources</param-value>
</context-param>
EDIT
Have solved my own problem. I have add the folder in the META-INF and i worked. Very strange