[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Fetch a windowLabel using the portlet taglib

Posted on 2009-02-24
Medium Priority
Last Modified: 2013-11-24

I am currently developing a site using portlets.

I would like to fetch the windowLabel in one of my portlets, but I can't find how... :-(
I know that <porlet:actionURL /> builds an URL that contains the windowLabel, but is it possible to only get this element, not the whole URL?

If the taglib manages to build the URL (and therefore, fetch the windowLabel), this means that it is somehow possible...

Is there someone that could help me please?

Thank you.
Question by:The_Wizard_of_wind_Oz
1 Comment

Accepted Solution

The_Wizard_of_wind_Oz earned 0 total points
ID: 23754974
I finally found out by myself how to resolve the problem.
You may find below what I did (maybe it can be of some help for someone else).

As I am using a WebLogic server, I changed the taglib I was using.
Instead of the portlet taglib, I now use the netuix taglib.

My views are done in FTL files, so I declared the taglib like this:
          <#assign netuixRenderTags=JspTaglibs["http://www.bea.com/servers/portal/tags/netuix/render"]>

I then used this taglib to fetch the window url which contains the window label AND the page label (the portlet tags only gave me one of these two values, not both, this is why I couldn't use them):
          <@netuixRenderTags.windowUrl />

If you are using JSPs, the above code should be quite similar. You should have something like this:
          <%@ taglib prefix="netuixRenderTags" uri="http://www.bea.com/servers/portal/tags/netuix/render" %>
          <netuixRenderTags:windowUrl />

Hope that helps.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question