Using the portlet:resourceURL UI Component

The Liferay Faces Bridge component suite provides many Portlet 2.0 UIComponent tags that are useful for JSF development. In this tutorial, you’ll learn about the portlet:resourceURL tag.

If the var attribute is present, the portlet:resourceURL tag introduces an EL variable that contains a javax.portlet.ActionURL, adequate for obtaining resources. Otherwise, the URL is written to the response.

<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns=""
    <h:head />
            <portlet:resourceURL var="myResourceURL">
                <portlet:param name="foo" value="1234" />
            <h:outputText var="actionURL=#{myResourceURL}" />

Great! You’ve been introduced to a new Liferay Faces Bridge UIComponent tag, and have can now implement it into your JSF portlet!

Liferay Faces Alloy UI Components

Understanding Liferay Faces Bridge

« Using the portlet:renderURL UI ComponentIntroduction to Android Apps with Liferay Screens »
Was this article helpful?
0 out of 0 found this helpful