• h:link is intended to be used to render a hyperlink that navigates to other JSF views via HTTP GET, or perhaps to re-render the same view with different view parameters via f:param child tags.
  • h:outputLink is intended to be used to render a simple <a href="...">hyperlink</a> that requests a URL via HTTP GET.


HtmlLink is a UIOutcomeTarget component that renders an <a> element (hyperlink).

Navigation Usage

The component can be used to navigate between pages with the outcome attribute. Setting includeViewParams=true will automatically include all of the f:viewParam tags (view parameters) as URL parameters.

Source Code

<ui:composition xmlns="" xmlns:h=""

	<!-- Navigation based on outcome of navigation-case defined in navigation-rule.xml -->
	<h:link outcome="toParam">
		<h:outputText value="#{i18n['to-param-page']} >" />
	<h:outputText id="parameterValue" value="foo=#{facesContext.externalContext.requestParameterMap['foo']}" />

<?xml version="1.0"?>

<faces-config xmlns="" xmlns:xsi="" version="2.2" xsi:schemaLocation="">
Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20