1.

How To Add Context Path To Url For Outputlink?

Answer»

Current JSF implementation does not ADD the CONTEXT path for OUTPUTLINK if the defined path STARTS with '/'. To correct this problem use #{facesContext.externalContext.requestContextPath} prefix at the beginning of the outputLink value attribute. For example: 
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/myPage.faces">

Current JSF implementation does not add the context path for outputLink if the defined path starts with '/'. To correct this problem use #{facesContext.externalContext.requestContextPath} prefix at the beginning of the outputLink value attribute. For example: 
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/myPage.faces">



Discussion

No Comment Found