Change Portlet Title Color

Hi,
This questions is for Weblogic Portal.
How can i change the portlets title color dynamically based on java condition.
Thanks

There is a weblogic portal forum.
I believe this would be a better place for your question(WebLogic Portal

Similar Messages

  • How to change blog title color with modern template?

    hello everyone,
    I want to change the blog title color from the default red to another color but can't find a setting to let me do so. Can anyone help me out and let me know how I can change this? Here is a link to my site to show you what I'm talking about...
    http://web.mac.com/stephenjames716/iWeb/home/blog/blog.html
    thanks,
    Steve

    Hey Stephen...
    For the main blog index page, you can edit the CSS the same way you have done in the past...
    http://discussions.apple.com/message.jspa?messageID=1596652#1596652
    You can also edit the template XML directly, but I'll leave that to Suzanne or someone more experienced to explain.
    http://discussions.apple.com/thread.jspa?messageID=3139039&#3139039
    If you are referring to the blog entry titles and don't care that the main blog index titles will remain red, you can always change the color of the title text in your blog entry. Then when you want to start a new entry, just duplicate the last entry and all the settings will remain the same.

  • 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

  • Is it possible to change folders title color?

    I cant see the titles in my folders because I have put a background and the title color is black. Is there any way to change it? Thanks already.

    Sadly, Labels were removed in 10.9, so that particular solution which would have allowed you to change the background color of the file titles is gone.
    Tags currently only place a colored circle *next to* the file name, and so don't help you very much.
    To my knowledge, there isn't a solution to black-on-black filenames on folder backgrounds.
    I seem to rememebr that the old (System 7/8) Labels used to actually change the filename color as well to ensure that they were readable when the label background color was changed - that would be a fantastic feature to bring back into OS X.

  • I18N of portlet titles and the like

    Is there a way to use resource bundles to define desktop, book, page and portlet
    titles (and other similar non-content stuff) in Portal 8.1? If not, will it be
    supported at some point?

    Dave, I found you can specify i18n titles through the online portal admin
    console, but not through the portlet (etc) definitions in Workshop. Also,
    you could make your own skeleton files... I've had to do this to reflect a
    dynamically changing portlet title which is drawn from the CMS based on a
    session attribute value.
    cheers,
    Markus
    "Dave Muirhead" <[email protected]> wrote in message
    news:[email protected]..
    >
    Is there a way to use resource bundles to define desktop, book, page andportlet
    titles (and other similar non-content stuff) in Portal 8.1? If not, willit be
    supported at some point?

  • URGENT - HTML Portlet Title

    Hi,
    We are using Portal Version 3.0.9.8.5. I've a situation where in I need to change Portlet titles (for HTML portlet) all over the website (because of the change in the co. name). I was wondering if anyone can point me to a table where this information is stored so that I can change this at the database level.
    Please suggest -- thanks!!

    portal30.wwv_modules$ and portal30.wwpro_portlet_metadata_nls$ have it.
    However, there has got to be more than this, because when I change it in these two places, it still does not change in the application.
    ~Ali..

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • Change the background color of a title bar

    I'd like to know if it's possible to change the background color of a swing application title bar.
    Thanks in advance.

    In Windows I think you can change the overall look of the desktop - Standard Windows comes with a bluish scheme, but you can change that, say to something like greenish. On NT you do it using right click on desktop > Properties > Apperance > Scheme etc etc.
    So I think Frame title colour is very much a OS specified thing.

  • How to change the selected tabPane title color in JTabbedPane

    how to change the selected tabPane title color(or set bold) in JTabbedPane.
    Any advice will be appreciate.

    Hi,
    try
    // Set text color for the selected tab
    tab.setForegroundAt(tab.getSelectedIndex(), Color.red);Hope that helps

  • Why I cannot change font  and Color in JFrame title??

    Dear sir:
    I try to change font and Color in JFrame title in code below,
    It display all html code, not expected formatted ones.
    but fail. Looks like no way to do it??
    Can somebody help??
    Thanks
    import java.awt.BorderLayout;
    import java.awt.Toolkit;
    import javax.swing.*;
    public class JFrameTester {
      public static void main(String[] args) {
         String iconPath ="file:C:/eclipse/workspace/Test/images/long.PNG";
         String title = "<html><body bgcolor=\"yellow\">" + "<img src=\""+iconPath+"\">" +
              " <font size=\"6\" face=\"Verdana\" color=\"red\"><b>"+ "New Tester" + "</b></font></html>";
        JFrame f = new JFrame(title);
        f.setIconImage(Toolkit.getDefaultToolkit().getImage("images/123.gif"));
        f.setSize(250, 250);
        f.setLocation(300,200);
        f.getContentPane().add(new BorderLayout().CENTER, new JTextArea(10, 40));
        f.setVisible(true);
    }

    Looks like no way to do it??depends on the L&F you want.
    here's one way
    import java.awt.*;
    import javax.swing.*;
    class JFrameTester {
      public static void main(String[] args) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.RED));
        UIManager.put("activeCaptionText", new javax.swing.plaf.ColorUIResource(Color.YELLOW));
        String title = "Hello World";
        JFrame f = new JFrame(title);
        f.getLayeredPane().getComponent(1).setFont(new Font("Tall Paul",Font.ITALIC,24));
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(250, 250);
        f.setLocation(300,200);
        f.getContentPane().add(new BorderLayout().CENTER, new JTextArea(10, 40));
        f.setVisible(true);
    }

  • Portlet title and name do not change

    Hi
    We changed the portlet title and portlet name in provider.xml file. After the portlet repository has been refreshed we could see the changes in the repository. But on the pages where the portlets already exists it does not show the change. If we reate a new instance of the portlet to a page, the new name is reflected.Restarting the apache( and jserv) did not make any difference. Any more changes or refresh we need to carry out?.
    In case it helps
    There are 2 tables called WWPOB_PORTLET_INSTANCE$, WWPOB_PORTLET_INSTANCE_FLAT$. Each of these tables has a name column that does not appear to reflect the new name of the portlet for the records that existed before the provider.xml changed.
    Thanks
    Raja

    Raja,
    Please post this question to the PDK Forum.
    Thanks,
    Jerry

  • Why can't I change the background color on title slides in 10.0.2?

    I can change the font color, but the background only seems to be able to be black. any truth in that?  Seems like the older version I had let me change the background color.

    @ KT
    I'm replying to myself because I cannot see your post ??????
    From my email- KT said:
    "Typically, when a same-only different controller acts up like this, the first thing to do is to rewire - sounds like you've gone down that path tho.
    Can you duplicate one of the cooperative controllers, add it to the mix and see if things change there?"
    I've tried all of that several times.  I have no idea.  Maybe some sleep will help it and me.
    Thanks for your comments and suggestions.
    Edit
    As soon as I posted this - your post appeared.  Again??????

  • 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

  • In Pages 09' how do I change the background colors on the templates?

    I have been trying to change the background on one of the templates from red to green for a while.  I can't figure it out and i can't find answers online any where that are helpful at all.  I just need to changes the background color to what I want it to be and not what the programs sets them too.  Any ideas?  I'm totally stumped!
    Thanks for the help!

    Hi Burke,
    Here's the result, using Peggy's suggestion:
    Process:
    Click on the thin strip of red to the left of the title ("THE THOMPSONS") to select the background.
    You'll see the small x in each corner, indicating the object is locked.
    Go Arrange > Unlock (or press option-command-L) to unlock the object.
    Click on the Fill Color well in the format bar, and choose a new colour from the palette.
    Go Arrange > Lock (or press command-L to re-lock the object.
    Save the result.
    Regards,
    Barry

  • Set title color in TitledBorder

    Hi there! i'm new to Java as well as swing.
    I would like to know how to set the title color of the TitledBorder. By default, the title color is black, I would like to change it to green.
    i intend to use this constructor: TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
    but don't know how to assign the values for the parameters. especially for the Color titleColor
    because when i used Color.green it doesn't work. any suggestion?
    this is my coding without setting the title color yet.
    JPanel panel;
    panel = new JPanel();
    panel.setBorder(new TitledBorder(new EtchedBorder(Color.orange,Color.red), "Title Name"));

    Methods are applied to objects:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Ex {
        public static void main(String[] args) {
            JPanel cp = new JPanel();
            TitledBorder b = new TitledBorder(new EtchedBorder(Color.ORANGE,Color.RED), "Title Name");
            b.setTitleColor(Color.MAGENTA);
            cp.setBorder(b);
            cp.add(new JTextField("example content", 10));
            JFrame f = new JFrame("Ex");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(cp);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

Maybe you are looking for