Changing colors/style sheets with custom header portlets?

We would like write a completely custom header portlet (a standard portlet that is designated as a header, notusing the branding server), but I can't seem to find a way to change the style sheets in subportals when I do this.
Am I missing something? Do you have to use the branding engine to control style sheets in subportals, or is there another way?
Chris StoffelPortal DeveloperHalliburton KBR

------- developersupport wrote on 12/11/03 4:24 PM -------
The way Branding accomplishes what you're looking for is by setting a portlet setting called "Portal-Style" on the header portlet using the EDK.  This setting can be set either as an Admin level or CommunityPortlet level setting.  When the portal loads a page with a header, it will check to see if the header has this preference set (first on the CommunityPortlet level, if the header is on a community, and then on the Admin level).  If so, the portal will cause everything to use the stylesheet specified in the setting value.
The setting value is the name of the stylesheet.  For example, if you wished every page displaying the header to be orange, you could set the "Portal-Style" Admin setting on the portlet to a value of "mainstyle17", the orange-themed stylesheet.
Perhaps I'm not setting the preference properly. Sniffing the HTTP headers between the gadget and portal servers, I do see:
[HTTP_CSP_GLOBAL_GADGET_PREF] => Portal-Style=mainstyle17
(I also tried it with Portal%u002DStyle, but neither works)
The remote server header portlet doesn't seem to be picking up the fact that there is an admin pref to override the main page's stylesheet. Did I create the portlet wrong, or am I setting the preference incorrectly, or what? Thanks

Similar Messages

  • Re-Creating the Help button in a Custom Header portlet

    I've disabled the Top Bar from my portal, and need to create the Help within my custom Header portlet. I can't find any code on how to have it dynamically work? Is it even possible?

    It is possible. Here is a custom function we wrote:
    /***ReturnsanHTMLAnchorthatimplementscontextsensitivehelp.Note,ifeither*imgHelpORstrHelpTextarenotnull,bothdefaultswillbeclearedandoverridden**@paramimgHelp-Includeanoptionaloverrideimage-nullifdefault*@paramstrHelpText-Includeoptionaloverridetext-nullifdefault*@paramasOwner-Theactivityspacecurrentlyinuse**@returnHTMLAnchor*/
    publicstaticHTMLAnchor GetHelpLink(HTMLImg imgHelp, String strHelpText, AActivitySpace asOwner){HTMLAnchor result = [b]null;
    //Get the default help anchor
    result = HTMLConstructHelpers.GetHelpAnchor( asOwner );
    if(null!= imgHelp || null!= strHelpText)
    //Clear the existing default help image and text
    result.ClearInnerHTMLElements();
    if(null!= imgHelp)
    result.AddInnerHTMLElement(imgHelp);
    if(null!= strHelpText)
    //Add in our own custom text
    result.AddInnerHTMLString(strHelpText);
    returnresult;

  • How to print jTable with custom header and footer....

    Hello all,
    I'm trying to print a jTable with custom header and footer.But
    jTable1.print(PrintMode,headerFormat,footerFormat,showPrintDialog,attr,interactive)
    does not allow multi line header and footer. I read in a chat that we can make custom header and footer and wrap the printable with that of the jTable. How can we do that..
    Here's the instruction on the chat...
    Shannon Hickey: While the default Header and Footer support in the JTable printing won't do exactly what you're looking for, there is a straight-forward approach. You can turn off the default header/footer and then wrap JTable's printable inside another Printable. This wrapper printable would then render your custom data, and then adjust the size given to the wrapped printable
    But how can i wrap the jTable's Printable with the custom header and footer.
    Thanks in advance,

    I also once hoped for an easy way to modify a table's header and footer, but found no way.
    Yet it is possible.

  • Changing the portal banner with customized banner!

    Hi Friends,
    I want to change the portal banner with customized banner with logo. So for that, I created a customized banner and named as bg_banner.jpg by renaming the original as bg_banner1.
    I modified them in both paths
    D:\OracleBI\web\app\res\s_oracle10\b_mozilla_4\ and
    D:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4
    Also restarted both Presentation Services and OC4J
    But still, I'm unable to view my customized banner instead I see the original LOGO missing. But able to view the rest of the banner with standard dashboard links.
    Please correct me, where am I missing and do the needful.
    Best regards
    User622248

    Use a copy of the original and paint in this.
    Than replace it there:
    \bi\web\app\res\s_oracle10\b_mozilla_4
    \bi\web\app\res\s_oracle10\b_mozilla_4\rtl
    \bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res + rtl.
    Perhaps you forgot the \rtl\ banner?
    Regards,
    Stefan

  • I am facing problem while i create a xls sheet with some Header.

    I am facing problem while i create a xls sheet with some Header.
    If i give the hed names as FirstName , LastName its comming fine.
    FirstName | LastName
    --------------------------|------------------------
    But when i specify a string like New"Deal , New"approach .
    = "New"Deal " | =" New"approach" .
    --------------------------|------------------------
    Problem is:
    It's adding = sign in front of the header name.
    I dont want that = to be in front of the headername.
    //rep.addColumn((String) itr.next());
    The above code is used to add the header name to the xls sheet.
    The argument will come as New"Deal
    But after seeing xls it has become ="New"Deal "
    Edited by: SUNJava2008NY on Jun 12, 2008 11:38 PM

    What is the tree structure created for the property of the componentB?
    Can you try the below code in your componentB jsp and check whether you are getting the property value
    Resource resource = slingRequest.getResource();
    String description = ((String) ResourceUtil.getValueMap(resource).get(
                        "./description", String.class));

  • Cascading style sheets with htp procedures and functions

    I'm new to style sheets. I currently build dynamic web pages with database procedures using htp/htf. Can someone tell me how to use style sheets with this functionality.
    Thanks

    This is a good point to start learning about css:
    http://www.htmlhelp.com/reference/css/

  • Using a style sheet with hbj:link

    Hi guys,
    I'm looking for a way to use a style sheet that I've created in my jsp with an hbj:link tag. Here's my style sheet:
    <STYLE type="text/css">
    a.button
    a.button:active, a.button:focus, a.button:hover
    </STYLE>
    Here's my link:
    <hbj:link
         id="<%=linkId%>"
         text="Sign Me Up"
         tooltip="<%=toolTip%>"
         onClick="signupLinkClick"
         linkDesign="REPORTING"
         >
    </hbj:link>
    I've tried wrapping an <a href="#" class="button"> tag around the hbj:link tag, but that didn't work. Any ideas?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    Hi,
    there is a possibility to change the default style, but is not really clean. The browser when rendering a tag uses the last defined style for this tag. So you can redefine it. I used it in a DynPage, it worked ok.
    First run the iview with standard style (normally). Look into the sourc of the page and find your "Sign Me Up" link. Check the class of the <a> tag. For instance it is a "urLnk".
    Now just modify your style definition:
    <STYLE type="text/css">
    urLnk.button {
    padding: 2px 10px 3px 10px;
    border: 2px outset #cccccc;
    background: #C0C0C0;
    color: #000;
    font-size: 11px;
    text-decoration: none;
    height: 19px;
    vertical-align: bottom;
    urLnk.button:active, a.button:focus, a.button:hover {
    border: 2px inset #c0c0c0;
    vertical-align: middle;
    background: #cccccc;
    color: #000000;
    text-decoration: none;
    </STYLE>
    and so on...
    Hope this helps,
    Romano

  • Style sheet with Struts frame work

    Hi,
    I am using MyEclipse editor. I am trying to use Style sheet in my JSP page using Struts frame work. I tried several ways but style sheet is not applying on my JSP page. Please look at my code and let me know where is the problem.
    1. I created a project called "AcmiReports". In the webroot I created folder called "CSS". In this folder I created "AcmiReports.css" file. In my JSP I am using like this
    <head>
    <link rel="stylesheet" type="text/css" href="/AcmiReports/WebRoot/css/AcmiReports.css">
    </head>
    Where am I doing wrong? I read somewhere that I need to set some thing in struts-config file. Is this true.
    Please help me.
    Thanks,
    Anamika

    No its not working fine, i m also facing the same problem with my code..
    when ever i come to jsp page through action css works fine, but if i directly forward to jsp page, css doesnt work
    can any body help me, its to urgent.. i need to submit my project till 1st of april... please do the need full asap
    i m copying the code used to apply the css in my jsp file
    <title><bean:message key="login.title" /></title>
    <link href="default.css" rel="stylesheet" type="text/css" />
    <script language=javascript src="clock.js" type="text/javascript"></script>
    same code works fine through action, but through normal forward it doesnt...

  • Style sheet with ADF

    Hi,
    I want to use Style sheet in my ADF project. I use the 'styleclass' component for each of my field in the jsp page. But I dont see any effect on my jsp page. Is there any thing to be added to web.xml or faces-config.xml files?
    Please let me know as I need this soon.
    Thanks,
    Haripriya.S

    Hi,
    I tried to have a custom skin in my application. I basically need a blue background for my application in all the pages.
    Here is the code that I added in my stylesheet (rebillSkins.XSS). I have also configured the path of the stylesheet in adf-faces-skins.xml file.
    Code:
    <style name="AFDarkBackground">
    <property name="background-color">#c5d4e9</property>
    </style>
    <style selector="af|body">
    <includeStyle name="AFDarkBackground"/>
    </style>
    But when I run my application I get the white backgroud as before. Am i wrong in my code anywhere? Please could you help me?
    Thanks,
    Haripriya.S

  • Sales order display-how to change color of item with high level 0

    Please does anyone know how can i chenge the color of item with high level 0 in display of sales order in red or yellow so it can be seen better for better searching on page?
    thank you in advance...
    regards..

    You'd probably have to do a modification in SD for that. But what you can do, is make the higher level item not changeable. You could also set the display range to UHAU to only see the main items, do this in transaction VOV8. Or you could change your item category in VOV7 only to show main items.
    good luck

  • Using RoboHelp 8 style sheet with RoboHelp 9

    Howdy. My issue:
    I was using RoboHelp 8 at work to craft a web help document out of a Word file. We have a company CSS we apply to web help for look, feel, etc. It worked in RoboHelp 8, but not in 9 despite following the same Word Import procedure. Needed to upgrade to RH9 because RH8 was not recognizing our version of Word to compile and create the web help files.
    How can I make my old style sheet work with RH9? Is there some step I'm missing? Help appreciated with 20.1 bazillion thank yous in advance.

    Hi there
    First we need to know what type of string you are using and obtain an exact measurement.
    I'm joking, of course, but the fact here is, we need more information. Things like:
    You said "...despite following the same Word Import procedure.". What are the exact steps in said procedure, please?
    Note that it's a simple process to ignore any style sheet during the Word import, then later import just the company CSS file and associate it with your topics. All of that can be done in perhaps 30 seconds or so.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Download internal table data into excel sheet with column heading and data

    Hi,
      I am having one internal table with column headings and other table with data.
    i want to download the data with these tables into an excel sheet.
    It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
    Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
    what we have to do for storing the file name in runtime.
    Can anyone help me on this.
    Thanks,
    Rose.

    Hi Camila,
        Try this
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = PATH2
       FILETYPE                        = 'XLS'
      TABLES
        DATA_TAB                        = IT_DATA
       FIELDNAMES                      = IT_HEADINGS
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • Java code to connect to WSDL file with custom header

    Hi all,
    I am an absolute noob when it comes to Java. I need to write a Java app that can connect to a WSDL file with a custom header. Basically, all I need to do is connect to the web service and pass a username and password.
    Any help would be appreciated.
    Thanks,
    A

    Better you use tools which can generate code(interface,proxy and stub classes) which can take care of calling all the WSDL defined methods..i generally use RAD not an open source as per OP use eclipse open source or netbeans which can do the trick

  • Calling AdvancedDataGridSortItemRenderer with custom header

    HI,
    I have searched for a few hours now no luck...
    I have an advanced datagrid, with a lot of columns showing
    small check mark icon for boolean value.
    To make the columns smaller, I made a simple headerRenderer
    that rotates the labels 90 degrees, so they run vertical.
    but I lose the sort arrow these columns.. Looking the docs
    http://livedocs.adobe.com/flex/3/langref/mx/controls/advancedDataGridClasses/AdvancedDataG ridHeaderRenderer.html
    under
    sortItemRenderer
    Note that the sort item renderer controls the display of the
    sort icon and sort sequence number. A custom header renderer must
    include code to display the sort item renderer, regardless of
    whether it is the default or custom sort item renderer.
    How do I call that from my code

    Hi Juan,
    Here I have written the form and program name.
    And here is the 185F definition.

  • Changing fonts - style sheets

    In firefox I am able to set the default font and size in prefs.
    How can I do ths with safari?
    Also I tried to add a style sheet in advanced prefs - but it did nothing... What should the style sheet content say to just set the default font to Ariel 16?

    How to set default font in Safari: Apple Support Communities

Maybe you are looking for

  • No Wi-Fi after using Apple TV to watch video from iTunes?

    After watching video from iTunes library on ATV2 , when trying to use mac afterwards wi-fi slow or stopped. I Have to unplug router to get it working again. Don't think its always being like this?

  • Java   "main cass notfound error"

    after setting java path & writing code i am able to compile & run my code (javac [filename].java java filename) "only in the bin folder .......without errors,, if compiled anywhere else its compiling fine but i am getting error ...... on running at (

  • What are the BP and BF for E- Recruitment?

    Dear All, System is EHP6 and portal 7.3 ERECRUIT 606 We are going to deploy below Business Packages. BP RECRUITER 1.51 BP RECRUITING ADMINISTRATOR 1.51 We are going to activate below Business Function. This below BF are there in my system. HCM_ASR_CI

  • Help ordering a recordset

    Hello, I'm new to Oracle and SQL as well. I have a table that stores hundreds of names in the following pattern: RMAWSTI09 RMAWSTI10 RMAWSTI100 RMAWSTI11 RMAWSTI01 RMAWNOTE01 RMAWNOTE10 RMAWNOTE11 RMAWNOTE100 I want to order those names considering o

  • ERROR MESSAGE regarding Flash Player

    When i want to watch a program on BBC iplayer, it comes up with an error message saying that you must download Flash Player or that it is not up to date, however when i follow the link it brings me to a page that says that either ActiveX Filtering is