Using the portlet:namespace UI Component

Liferay Faces Bridge provides many useful Portlet 2.0 UIComponent tags as part of its component suite. In this tutorial, you’ll learn about the portlet:namespace tag.

If the var attribute is present, the portlet:namespace tag introduces an EL variable that contains the portlet namespace. Otherwise, the namespace is written to the response.

<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns=""
    <h:head />
            <portlet:namespace var="mynamespace" />
            <h:outputText var="namespace=#{mynamespace}" />

Great! Another UIComponent tag to use for JSF development is in the books.

Liferay Faces Alloy UI Components

Understanding Liferay Faces Bridge

« Using the portlet:actionURL UI ComponentUsing the portlet:param UI Component »
Was this article helpful?
0 out of 0 found this helpful