portlet:renderURL

PortletRenderURL is a UIComponent that provides the ability to get a PortletURL that invokes the RENDER_PHASE of the portlet lifecycle targeting the current portlet.

General Usage

Specify portlet:param as a child tag in order to add portlet render parameters to the URL.

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:portlet="http://xmlns.jcp.org/portlet_3_0"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

	<portlet:renderURL var="renderURL">
		<portlet:param name="foo" value="bar" />
	</portlet:renderURL>
	<h:outputLink value="#{renderURL}">
		<h:outputText value="#{i18n['hyperlink-targeting-the-showcase-portlet']}" />
	</h:outputLink>

</ui:composition>
Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20