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.

Related Topics

Liferay Faces Alloy UI Components

Understanding Liferay Faces Bridge

0 (0 Votes)
Using the portlet:actionURL UI Component Previous