jsf - How to set image directory for Primefaces GraphicImage -
i have graphicimage component couldn't see loading.gif file. think there problem file path. image under "web pages/resources/images/loading.gif".
i using netbeans , here page "web pages/pages/custompages/index.xhtml";
<p:blockui block="mydatatable" trigger="mydatatable"> loading<br /> <p:graphicimage library="images" value="loading.gif"/> </p:blockui
edit: these didn't work :)
library="images" value="loading.gif" library="resources/images" value="loading.gif" value="loading.gif" library="resources" value="loading.gif"
edit2: here how solved issue don't think solution. there other way?
value="#{facescontext.getcurrentinstance().getexternalcontext()}/resources/images/loading.gif"
when use library
attributte shouldn't use value
attributte. use name
attributte instead. try:
<p:graphicimage library="images" name="loading.gif" />
Comments
Post a Comment