Supressed Portlet Title Bar

I'm developing a portlet that needs to display additional content if the portlet title bar has been suppressed in the portlet object settings.
Is it possible to programatically determine if the portlet title bar has been suppressed?

I'm thinking you might also be able to write a PEI for the object creation event, and check the created object to see if it is a portlet, and if it is, ensure the length of the title is correct (and truncate it if it is too long).

Similar Messages

  • Adding background image to portlet title bar

    Hi,
    Does anyone know how to add a background image to a portlet title bar. I have tried using the LAF editor but nothing seems to work. The image will be static and not change.
    Any help appreciated.

    Hi Chris
    You have to modify the .css file depending on the type of Skin you are using like "default" or "bighorn" in case of 10.x and 9.x etc. Best thing is to install Firebug for Firefox and inspect the Titlebar in firebug. That should tell exactly which .css file and which element in that .css file is used to render the Portlet Title bar.
    For "default" skin, the file is window.css and the element in this file is ".bea-portal-window-titlebar" with background-color: #XXXXXX. Replace this or add another field like background-image: url(your image path). This window.css file can be found under WebContent\framework\skins\default\css\window.css. Remember that in 9.x and 10.x to see this file from Workshop IDE, you need to switch view to Merged Projects and select this file and copy this to your project to view it. BUT, I would not recommend to modify any out of box .css file. Instead create a new file custom.css file and add entries in this file which you want to overwrite. This is the standard way to customize any out of box skins look and feel. So in your custom.css file your will have one entry like this:
    .bea-portal-window-titlebar {
    background-image: url(your image path)
    For "bighorn" skin introduced in 9.x and 10.x, the elements in .css files are slighty different but the concept is same. I customized out of box bighorn skin to change background color of portlet title bar. The .css location for portlet title bar for bighorn skin is: WebContent\framework\skins\bighorn\css\colors.css and the element is ".wlp-bighorn-titlebar". For quick testing from Firebug, inspect this element and change the background color to something else and see if it reflects in Firefox. Then you can create custom.css file under same folder structure in your portal web project and over write this element and this field alone with the background-image that you want something like:
    .wlp-bighorn-titlebar {
    background-color:#FF0000;
    background-image:url(your image path);
    It is highly recommended to have all customizations go into custom.css file only. Please make sure that you have this custom.css file entry in the skin.xml file (in case of bighorn) or skin.properties file (in case of old legacy default skin). This .xml or .properties file can be found under same folder structure like: WebContent\framework\skins\yourSkin. For new bighorn skin.xml file this custom.css file entry is already there. But for old legacy default skin you may need to add this entry.
    HTH
    Ravi Jegga

  • Portlet Title Bars

    Using WebLogic 8.1 SP2 and all portlets are JSR 168 Java portlets. Currently the
    Portal Server uses javascript to set titlebar text. In some cases this can cause
    annoying flickering when the page is rendered. Is there a way to force the Portal
    Server to not use javascript to set the titlebar text?
    Thanx
    Mark

    Hi Winston,
    I can understand your desire to do this.
    In the Release 1.7 of the Personalization Server, this can only be done
    through customization in the JSPs. Trying to do this simply would
    result in all title bars from all portlets being used. I am assuming
    this is not what you want.
    This is much easier done in the Release 2.0 of the WebLogic Commerce
    Server. This release is now available for download from the BEA
    website. I could walk you through how to do it with Release 2.0 but the
    documentation is also pretty straight-forward.
    Let me know if this doesn't answer your question!
    Cindy
    Winston Rast wrote:
    Is there a way to completely remove the title bar area of a portlet?
    Thanks,
    -wr

  • Jsr portlets - remove title bar

    How to remove title bar of a JSR portlet. (portlet.xml or weblogic.portlet.xml?). I have imported few java portlets into my portal and I want to remove the title bar. weblogic.portlet.xml file does not have any entries apart from </weblogic-portlet-app> tag..
    Like for the JPF portlets we can set the refreshAction how to control the initial action for a java portlet.
    thanks

    Sorry, no.
    In fact Apple put them at the top by popular demand!

  • Removing the title bar

    Hello,
    I saw in an earlier post that it is much easier to remove the title bar
    in 2.0 and that how to do it is in the documentation. Where would this
    be documented? All I've figured out how to do so far is make the title
    bar, title text, and banner bar be the same color as the background. So
    they look invisible, except there is an icon that shows up even though
    there is no reference to an icon.
    Thanks,
    Leila

    Hi Leila.
    If you edit your portlet through the admin tool - just don't specify a
    title bar url or delete the one that is there. This will get rid of the
    title bar.
    Cindy
    Leila Schneberger wrote:
    Hello,
    I saw in an earlier post that it is much easier to remove the title bar
    in 2.0 and that how to do it is in the documentation. Where would this
    be documented? All I've figured out how to do so far is make the title
    bar, title text, and banner bar be the same color as the background. So
    they look invisible, except there is an icon that shows up even though
    there is no reference to an icon.
    Thanks,
    Leila

  • Writing a specific text in the title bar of a content area

    Hallo,
    We have created several Content Areas which will be published as Webpage (NOT as Portlet to a Portal-Page! As example you can visit our Project Homepage http://pan.wsr.ac.at:7778/pls/portal30/url/FOLDER/ACCESSLAB/).
    Unfortunatly in the Title bar of the Browser there is always displayed the Title "Portal Content Area Builder".
    How can we change this Title to a more descriptive one for each specific Content Area respectively each Folder of a specific Content Area?
    Thanks,
    Christian

    The frame title is (typically) set in a native OS frame, which is not controlled by Java.
    Perhaps if you tell Java to let the L&F control the frame decorations it might work, but probably not, as it would probably just try to mimic what the OS does anyway, which is to not support HTML.
    So basically, you can't.

  • How can I change Portlet Title

    Hi,
    I need to dynamically change the portlet title.
    The portlet is a JSP and at run time determines what to show in the title bar.
    Thanks for help.
    Aamer.

    hi
    Here is what you need to do -
    1) In your provider.xml file set the "renderContainer" tag for the specified portlet to false
    2) Make sure in the "edit" page region section for the region containing your portlet, the two
    checkboxes for "render header" and "render borders" is CHECKED. Becuase, this overrides what you
    do at the provider.xml level
    3) Now you have control on rendering the borders and headers
    4) In your JSP portlet - have this code -
    xxxContainerRenderer cntr = new xxxContainerRenderer();
    PrintWriter pout = new PrintWriter(out);
    SimpleParameterMap pm = new SimpleParameterMap();
    pm.putParameterValue(PortletContainerRenderer.PORTLET_TITLE,"YOUR RUNTIME DEFINED TITLE"));
    cntr.renderShowHeader(pr,pout,pm);
    --- your content ---
    cntr.renderShowFooter(pr,pout,pm);
    regards
    -Ananth Makaram

  • Title Bar stuck under the Menu bar and I cannot select and move it.

    I often arrange windows around the desktop and sometimes I inadvertently push a window up too far and the title bar gets under the menu bar. Once I let go of the arrow, the title bar is too far under the menu bar and I can no longer reach it to move it down. The only solution is to close out the program and start over. Is there a way unbeknownst to me to select the title bar again and move it?
    Sharon

    My E*Trade streaming watch list was stuck under the Menu Bar also. I tried reseting the screen resolution down to 1280 x 1024, and restarting the MarketTrader. There on the display was the stuck window, out from under. I resized and moved it to a central location, and resized the display back to my normal 1920 setting. And to my relief, the window Bar! Thanks Discussion!

  • Clicking on enclosing folder's icon in the title bar doesn't open Finder

    I create PDF booklet from Mellel document using PDF service. Preview application opens newly created PDF document. I Command+click on its icon in the document window's title bar, move cursor one level lower and click on the encompassing folder's ("temp") icon. I expect new Finder's window to open and show me PDF document selected. However, Finder doesn't open. Disk permissions repaired. One week old clean Leopard installation. When I click on the icon in the TextEdit window's title bar and do the same, encompassing Finder's folder opens in a new window. Word also opens Finder window. ONly Preview doesn't work. It used to work at least one month ago. Where the problem could be?

    Please post the solution so it will help others, and mark this topic as "solved" so it is easier to track the status when browsing the forum.

  • How to replace the icon in the title bar and minimized window

    I am not sure if this is a Swing question. But since nobody answered it in the Java Programming forum, let me place it here:
    I would like to set my own icon in the title bar and in the minimized window of my java application, replacing the java coffee cup icon.
    I am using:
    frame.setIconImage(new ImageIcon("image.gif").getImage())
    as was suggested previously in the Java Programming forum at:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=5212059
    This does create the icon in both places. However, it only works when I run the program from JBuilder 2006. It doesn't work if I run the program from the .jar or the .exe file.
    How can I make it work for my .jar and .exe file?
    Please help! Thanks!

    It doesn't work if I run the program from the .jar...working example for a .jar
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        Image img;
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Save.gif"), "Save.gif");//correct capitalization required
          if (url != null)
            img = javax.imageio.ImageIO.read(url);
            f.setIconImage(img);
        catch(Exception e){}//do nothing - default will display
        f.setSize(200,200);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Why do I have two title bars - one with the title of the page I'm looking at and another with the new orange drop down menu? Plus I can't get FF4 to save my tabs, even when I go to about:config, why is that?

    I downloaded FF4, thinking that it would merely update from my previous installation, but all my tabs were gone. FF looks really weird - here is a link to a picture of it: http://tinypic.com/r/2mwdus4/7 - I have two title bars, my bookmarks toolbar is missing and the tabs are on the bottom. If I go to view => toolbars and click one of them, suddenly the second title bar (with the orange menu) disappers and my bookmarks toolbar comes back (even if I don't click on it in "view"). I can't get the browser to remember my tabs between sessions even though I set it to remember them in my settings. I even changed the browser.showQuitWarning to true in about:config, but it didn't work. What is going on?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How to get rid of title bar of a quicktime window?

    The main problem:
    I want to display the title info etc about each track as they play in iTunes. How can I do that on an otherwise black screen (desktop) (I don't want to use the visualizer with its psychedelic patterns).
    Background:
    I want to play music from iTunes (many pieces in a row - for like a full day). While this is happening I want the title etc of the tune to be displayed on the screen, like white smallish text against a black background in the lower right hand corner. At the same time I want slides to be displayed on the screen.
    So, with iPhoto I can run a slide show but only while one piece of music is playing.
    Instead I can have the desktop slowly change (from system preferences) with images from a folder every 5 seconds. That's not too bad. Looks good, actually, except for that annoying menu bar at the top! Well, black tape can hide that one (or a second display and move it over there). Now iTunes can play away all day.
    As to how to get the title etc of the song playing displayed I was thinking about somehow extracting it from iTunes with applescript, then paste it into the text track of a quicktime movie, and display that little movie in a small window. I have figured out how to get rid of the controller from the window. But, I can not figure out how to get the title bar of the quicktime window to go away - that is I want a window with nothing around it, neither controllers nor title bar nor anything. How do I create such a window. Any good ideas out there?
    Or is there a totally different way of obtaining the same effect?
    Thanks.
    G4   Mac OS X (10.4.8)  

    Hi,
    You could try posting at the QuickTime discussion area. There might be an iTunes visualizer that allows you to make a slideshow with track info. It has been a while since I tried making a SMIL file, but I think you could do what you want with that. Not sure how you create a streaming text of track information. I would have to do some reviewing.
    gl,

  • How can I get back the title bar in Thunderbird 38?

    The title bar can be turned on and off in Firefox. In the current version of Thunderbird (31), the title bar is present by default and there is no option to turn it off. In the beta version (38), there is no title bar by default… but I can't believe that there's no way to get it back. So, where is this setting? I can't find it.

    I sure agree that the setting isn't easily discoverable, but that's too late for the 38.0 release given that string freezes went in effect already (the reason being that localizers have to translate all UI elements for their respective language).
    The respective [https://bugzilla.mozilla.org/show_bug.cgi?id=814571 bug report] has been up for more than two years, but thus far not much progress in terms of a solution acceptable by the developers. I don't know if the extension proposed in the last comment was ever developed and posted.

  • Change the colour of title bar of frame

    how can we change the colour of title bar of any frame?

    i want to have control of the title bar.there must be some way out.look & feel gives it colour of that perticular types colour(motif,met,native).but i want my choosen colour for it.if you have any direction to solve it please suggest me that.

  • How can I change the color of a title bar?

    Ok, I have been looking for this answer for over a week now and nobody
    has yet given me an answer that works. So I am going to ask again.
    Here is a piece of code you can run to see what I am trying to do:
    public class RemoteDisplayFrame extends JFrame {
    public static final Color GRAY70 = new Color(179, 179, 179);
    public RemoteDisplayFrame() {
    super();
    public RemoteDisplayFrame(String title) {
    super(title);
         public void setBorderContent() {
    this.setUndecorated(true);
    JRootPane rootPane = this.getRootPane();
    rootPane.setWindowDecorationStyle( JRootPane.PLAIN_DIALOG );
    this.setRootPane( rootPane );
    public static void main( String [] args ) {
    RemoteDisplayFrame frame = new RemoteDisplayFrame( "Test Frame" );
    frame.setBorderContent();
    frame.pack();
    frame.show();
    Run this code and you should get a frame on your screen that has no
    close buttons, minimize buttons, or maximize buttons, and no menu.
    I want to change the title bar's color to a specific color.
    That color is GRAY70:
    public static final Color GRAY70 = new Color(179, 179, 179);
    If you have any idea on how to do this please do tell.

    AFAIK, you can't. I believe the title bar is rendered by the operating system, using the colors the user has chosen, consistently for all windows. Frankly, if your app could, it would annoy me, as I would still want all my windows to look consistent.

Maybe you are looking for