JSF Showcase


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

General Usage

Specify portlet:param as a child tag in order to add portlet action parameters to the URL. The portlet:actionURL component tag is provided for the sake of completeness since it has little purpose in JSF portlets. As shown in the example below, a practical use-case might be to @Override GenericFacesPortlet in order to intercept a non-JSF postback.

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:portlet="http://java.sun.com/portlet_2_0"

	<portlet:actionURL escapeXml="false" var="actionURL">
		<portlet:param name="foo" value="1234" />
		<portlet:param name="Non-Faces-Postback" value="true" />
	<form action="#{actionURL}" method="post">
		<input type="submit" value="#{i18n['submit-non-faces-postback']}" />

Liferay Faces Bridge Implementation 4.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.1-SNAPSHOT + Mojarra 2.2.13