I'm using the following to get a help document in our app. My problem is that while the <h:graphicImage>
evaluates the context path correctly, the h:outputLink
evalutates it to nothing. I have tried using both $
and #
in the h:outputLink
because I understand they have different evaluation times.
What is the difference in how the two EL expressions evaluate?
<h:outputLink value="${pageContext.servletContext.contextPath}/services/help.pdf">
<h:graphicImage
url="${pageContext.servletContext.contextPath}/images/help.png"
alt="Online Help"/>
</h:outputLink>