The handle navigation method handleNavigation(final FacesContext context, final String fromAction, final String outcome) from my custom navigation handler is not invoked by my h:link component?
<h:link value="text" outcome="./target.xhtml?faces-redirect=true">
<f:param name="param" value="#{var.prop}"/>
</h:link>
Using commandbutton invokes it.
The
<h:link>doesn’t send a POST request whereafter the target URL is been resolved. Instead, the<h:link>generates a HTML<a>element with the target URL already right in there in thehrefattribute which is in turn to be used to send a GET request. This URL is obtained byViewHandler#getBookmarkableURL(), which in turn delegates toViewHandler#getActionURL().If you’re using Mojarra, you can see all the job in
OutcomeTargetLinkRenderer#renderAsActive().You can easily provide a custom
ViewHandlerby extendingViewHandlerWrapperand registering it as<application><view-handler>.