Is the best way to create absolute links in JSF 2.0? Right now, I'm using <h:outputLink/> in this ugly key with #{facesContext.externalContext.requestContextPath} , as shown below. I do not want to use JSTL and <c:url />
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/pages/home.jsf">Home</h:outputLink>
source share