I use the following to get the reference document in our application. My problem is that while <h:graphicImage>evaluating the context path correctly, it h:outputLinkrejects it to zero. I tried to use $and #in h:outputLink, because I understand that they have different evaluation times.
What is the difference in how two EL expressions are evaluated?
<h:outputLink value="${pageContext.servletContext.contextPath}/services/help.pdf">
<h:graphicImage
url="${pageContext.servletContext.contextPath}/images/help.png"
alt="Online Help"/>
</h:outputLink>
source
share