JSF Showcase

portlet:renderURL

RenderURL 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://java.sun.com/portlet_2_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 4.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.1-SNAPSHOT + Mojarra 2.2.13