Fetch a windowLabel using the portlet taglib

Posted on 2009-02-24
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

    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[""]>

    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="" %>
              <netuixRenderTags:windowUrl />

    Hope that helps.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now