ADF panelGroup component's background image in CSS does not render

Hi,
I have an issue with the panelGroup component, where a background-image specified in the styleClass DOES NOT RENDER when deployed on the OAS. It works fine when I run the page on my local OC4J.
I've verified that the image I use is deployed correctly on the server.
We are using :
JDeveloper Studio Edition: 10.1.3.3.0.4157 (Build JDEVADF_10.1.3.3.0_NT_070619.1129.4157)
Oracle Application Server: 10.1.3.5.0 running on RHEL 5.
I'm customizing pages of an ADF application to change the branding and skinning. The page header region used in the application uses a 'panelPageHeader' and the image I need to introduce is part of branding and must be rendered above the application menus (2 levels: 1->MenuTabs, 2-MenuBar).
If it would help to see how my page renders locally, here's the link: http://tech-nik-alley.blogspot.com/2010/09/adf-panelgroups-background-image.html
(The brightly colored bar above the menus is newly introduced, ABC_Lightbar.jpg).
Using an objectImage with my light_bar image as source, directly in the facet menu2, causes the alignment of all pages to get disrupted. Hence the work-around of using the image as a background.
A copy of my pageHeader region is below, with comments. The panelGroup component newly introduced is in the facet "menu2". I've added the CSS definitions in the page as comments as appropriate.
Any pointers on how to debug further, work-arounds etc. are appreciated.
TIA and regards
Deepak.
=====MY PAGE HEADER REGION====
<af:regionDef var="attr">
<af:panelPageHeader styleClass="ss0" > <!—ss0 is "padding:0px;margin-left:14%;margin-right:14%;margin-top:0px;margin-bottom:0px;display:block;background-color:transparent;" -->
<f:facet name="branding">     
<af:panelGroup styleClass="ss_brand"> <!--ss_brand is "display:block;margin-bottom:12px" -->
<af:objectImage shortDesc="#{imageBean['SS_COMPANY_LOGO'].description}"
source="#{imageBean['SS_COMPANY_LOGO'].physicalName}"/>
</af:panelGroup>
</f:facet>
<f:facet name="menuGlobal" >
<af:panelGroup layout="horizontal" styleClass="ss00" rendered="#{attr.globalMenuShown}">     <!—ss00 is "margin-right:10px;" -->
<f:facet name="separator">
<af:objectImage source="#{imageBean['SS_GLOBAL_SEPARATOR'].physicalName}" shortDesc=""/>
</f:facet>
<af:menuButtons>
<af:goMenuItem text="#{sessionBean.authenticated?pageHeaderBean.loggedInUserInfo:messageBean.SS_GEN_GUEST}"/>
</af:menuButtons>
<af:menuButtons startDepth="0" var="menuGlobal" value="#{menuModel.model}">
<f:facet name="nodeStamp">
<af:goMenuItem text="#{menuGlobal.label}"
destination="#{menuGlobal.fileName}"
rendered="#{menuGlobal.type=='global' &amp;&amp; menuGlobal.rendered}"
/>
</f:facet>
</af:menuButtons>
</af:panelGroup>
</f:facet>
<f:facet name="menu1" >
</f:facet>
<f:facet name="menu2" >     <!-- facet menu2 originally has a 'menuTabs' (level 1 menu) on top of a 'menuBar' (level 2 menu) -->
                    <!-- Change required: introduce a light_bar image above level 1 menu (menuTabs). The image spans the page -->
<af:panelGroup rendered="#{skinFamily.menuLayout=='horizontal' and attr.otherMenuShown}">
     <!--Change: new panelGroup introduced, with a background image in the styleClass -->
<af:panelGroup layout="vertical" styleClass="pageHeaderLightBar"> <!-- pageHeaderLightBar is "background-image:url(/ss/skin/ABC/images/ABC_lightbar.jpg); " -->
<!--<af:objectImage source="/ss/skin/ABC/images/ABC_lightbar.jpg"/>-->     <!--Specifying the image directly, disrupts the all other OOTB pages-->
<af:objectSpacer width="22px"/>
</af:panelGroup>
<af:panelGroup styleClass="pageHeaderMenuLevelOne"> <!-- Another place where a back-ground image is used for a panelGroup using the styleclass -->
<af:menuTabs startDepth="0" var="menuTab" value="#{menuModel.model}">     <!-- The level 2 menu using menuTabs -->
<f:facet name="nodeStamp">
<af:goMenuItem text="#{menuTab.label}"
destination="#{menuTab.fileName}"
rendered="#{menuTab.rendered and menuTab.type!='global'}"/>
</f:facet>
</af:menuTabs>
<af:menuBar startDepth="1" var="menuBar" value="#{menuModel.model}">     <!--The level 2 menu using a menuBar -->
<f:facet name="nodeStamp">
<af:goMenuItem text="#{menuBar.label}"
destination="#{menuBar.fileName}"
rendered="#{menuBar.rendered}" />
</f:facet>
</af:menuBar>
</af:panelGroup>
</af:panelGroup>
</f:facet>
</af:panelPageHeader>
</af:regionDef>
===================================

'background-image:url("../image/Sunset.jpg")' is a relative URL... relative to the final generated markup. It should be wrong like 99% of the times. You should rather use a styleClass and deal with the background-image with skinning as the skinning engines knows how to deal with such urls. Note that you'll most likely have to define a new resource loader and servlet mapping for the ResourceServlet. I know someone made a blog entry about that, was it Frank or Shay? Hmmm cannot remember... Maybe John as well. Anyway a Google search should yield good results for adf resource loader I think.
Regards,
~ Simon

Similar Messages

  • Animated Gif Image does not render correctly on screen

    I have added animated gif image to the scene it does not render correctely.it shakes on the screen. plz give me any suggestion
    i use following code
    Image logo= new Image(getClass().getResourceAsStream("images/image.gif"));
    logoLabel.setGraphic(new ImageView(logo));

    Hello user,
    I think gif are rendered smoothly.
    Are you sure you are not making many object of same images everytime?
    Thanks.
    Narayan

  • Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • CS4 Design view does not render CSS correctly but browser does !?!?

    I am designing a layout using primarily CSS. I want to insert a table inside one of the div's. In design view the table gets pushed way out of position but in live view and on the web, the page looks correct. Why? Am I missing something in design view?
    Here is the actual page I am working on Sample Page
    Here is what I see in design view Design View
    This glitch is making it difficult to add content to the table.
    I tried to edit the page with Contribute CS4 and the table gets pushed so far out of position that it is impossible to access it. The page looks fine when I am connected but as soon as I try to edit it does not render properly.

    This question comes up almost daily, and I dont recall seeing an answer that is much different.  It comes down to that it does not matter what DV shows, it is the browser view that counts.  How frustrating it is to spend time and effort to correct a view in DW Design, only to find out it throws your browser view all askew. Its hard enough to make x number of different browsers all look good with however many screen resolutions, to worry about something that in the end does not matter.....
    Work more in code view, let F12 be your companion.
    Gary

  • ADF Mobile : Setting background image using inline style not working.

    The snippet is part of my amx page.
    But the issue is that the background image is not coming up in the deployed iphone application.
    The html source of app page shows that a background image is associated with this component but the location is file:///Users/oracle/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/com.oracle.smartphone/smartphone.app/backgroundrepear.png instead of some Xcode_Project>Far location which I was expecting.
    The image is actually present in public_html/icons
    And I set the inline style using the property inspector of listItem.
    <amx:listItem showLinkIcon="true" id="li1" action="goToWorkerDetail"
    inlineStyle='background-image:url("/icons/backgroundrepear.png"); background-repeat:repeat-x;'>
    <amx:tableLayout width="100%" id="tl1">
    <amx:rowLayout id="rl2">

    955920 wrote:
    The snippet is part of my amx page.
    But the issue is that the background image is not coming up in the deployed iphone application.
    The html source of app page shows that a background image is associated with this component but the location is file:///Users/oracle/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/com.oracle.smartphone/smartphone.app/backgroundrepear.png instead of some Xcode_Project>Far location which I was expecting.
    The image is actually present in public_html/icons
    And I set the inline style using the property inspector of listItem.
    <amx:listItem showLinkIcon="true" id="li1" action="goToWorkerDetail"
    inlineStyle='background-image:url("/icons/backgroundrepear.png"); background-repeat:repeat-x;'>
    <amx:tableLayout width="100%" id="tl1">
    <amx:rowLayout id="rl2">hi,
    i managed to get the background-image working. I dont use inlineStyle , instead i use "Skinning"
    Since im want all my pages have the same background image, i overwrite the panel page css
    .amx-panelPage {
    background-image: url("../pic1.jpg");
    the css file is located under "ApplicationController/public_html/resources/css/myiPhone.css"
    the image file is located under "ApplicationController/public_html/resources/pic1.jpg"

  • Is it possible to make a background image in css link?

    I'm building tiles of services and its all done in CSS calling for the background from image files. There's text which I know I can link but I want the whole tile to be a link and just have a border appear when people mouse over it (know how to do that) but I don't know how to code the tile as a whole as a link.
    Help?

    Line 67, Column 145:         document type does not allow element "div"  here; missing one of "object", "applet", "map", "iframe", "button",  "ins", "del" start-tag
    …content" class="serviceBoxcontentBody"><span style="float: left; width: 219px;…

    The mentioned element is not allowed to appear in the context in  which       you've placed it; the other mentioned elements are the only ones  that       are both allowed there and can contain the element  mentioned.       This might mean that you need a containing element, or possibly  that       you've forgotten to close a previous element.
    One possible cause for this message is that you have attempted to  put a       block-level element (such as "<p>" or "<table>")  inside an       inline element (such as "<a>", "<span>", or  "<font>").
    But it works.   Ok, what it the proper way to do this, please. Everything else validates fine.   

  • Setting a background image using CSS Designer

    I am trying to set a background image for a page header using the CSS Designer. When I click the browse button the Select Image Source dialog box launches but any time I click on something the dialog box closes and no changes are made. Does anyone know what is causing this?

    Which DW are you using and which platform/OS, please? I am unable to reproduce this with CC2014 on OS10.9.4

  • ADF mobile: page with background image

    Hi,
    Jdev 11.1.2.3.0 + mobile extension.
    I want to have a background image on my amx page and used following code:
    <amx:panelPage id="pp1"
    inlineStyle='background-image:url("../background-land.png"); background-repeat:no-repeat;'>
    I have created this inlineStyle using the property editor where one can browse the file location --> the image location is correct.
    But at runtime I do not see any background image.
    Any hints what's wrong ?
    regards
    Peter

    Hi,
    Can anyone please elaborate above statement with a code snippet.
    I want to set background image for all amx pages in my mobile application.
    Thank you in advance.
    Regards
    Kanav

  • Background Image in Nav Bar Not Working in IE 6 (but ok in 7 and Firefox 2)

    Hi gang,
    I'm having a bit of a problem with a background image for a navigation bar not appearing in IE 6. I've also tested it in IE 7 - it works perfectly, as it does in Firefox 2.
    http://www.iainmoran.com/update/test.html
    The really strange thing is the part of the bar after "Contact" IS fine in IE 6.
    Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
    Thanks again,
    Iain.

    Have you contacted Project VII support or searched their knowledge base?
    http://www.projectseven.com/support/index.htm
    Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
    Not exaclty a DW answer, but I've used the free FireFox add-on to help me find unused selectors. Point it to a sitemap.xml and it can spider the whole site (as listed in that xml file).
    https://addons.mozilla.org/en-US/firefox/addon/5392
    But be careful with it. It apparently doesn't read JavaScript and your PMM triggers are actually used.
    Mark A. Boyd
    Keep-On-Learnin' :-)
    If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

  • ADF Hierarchy Viewer does not render remote images

    I am using ADF Hierarchy Viewer in my application. I was trying to use a Image component inside one of its nodes. The image works fine if I use the image which is part of my application. If I use a remote image using its URI, it wont render the images. Is there something I am missing
    Thanks,

    By default, the Flash Player does not allow accessing images located on a domain other then the domain it was
    loaded from. You will need to set up a security override file (crossdomain.xml) on your server.
    You can Google to find more information on crossdomain.xml file.
    Here is one example:
    http://kb2.adobe.com/cps/142/tn_14213.html

  • Background image stretch in html not working if 'never remember history' is choosen

    I have a problem that did not exist in previous mozilla versions. I found the problem after installing the most recent version and after setting firefox to "never remember history"
    The problem is related to the CSS code for stretching a background image to fit the screen. The background image does stretch if "never remember history" is NOT set. Only part of the image is displayed and the rest of the background is black. I first noticed it with my website www.missionbayhighalumni.com and later found that the same problem also occurred with this website:
    http://www.htmlite.com/faq022.php or http://www.htmlite.com/faqEX004b.html
    I created several test cases with very simple code, all had the problem. The background image stretch code tests all work for other browsers and even firefox if "never remember history" is not selected. It also appears to be intermittent.

    Looks fine to me and all containers have a height:100%, so that is also correct
    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make sure to backup this data or make a note.
    You can't recover from this 'forget' unless you have a backup of the involved files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Background image in a table not in the document

    hello forum, i would like to put a background image in a table so that I am able to put things on top of the image and so it moves with the table.  I can only figure out how to do it in the page properties so that it is static on the page. Can anyone please tell me if what I am trying to do is possible? thank you in advance. Jim.

    Hi John,
    thanks for your hint, now I've got it. And so I was able to integrate/to play with Gramps hint in some variations too.Hans-G.

  • Background image on iweb site not showing

    I created a web site using iWeb sometime ago. I used all of the templates provided with the app. Since "me" has come along, all the content on my page displays, BUT the background image on ALL of the pages no longer shows. I republished the site to see if that would fix the problem, but no dice... Does anyone have any suggestions?

    I am searching the boards here, because I am having the same problem. My husband's site had dropped the background image from just one of the pages. I re-built that page for him, and it was fine. Now I'm having the same problem with mine. Again I rebuilt the initial page with the error, but now multiple pages say they're missing the background jpg file. What's up with this? And how do we get it back without having to re-build each darn page???
    I have made no changes to my computer. No new updates. Just one day it was there, and the next day it was gone. I am frequently accessing my website to make updates (at least weekly), so is this just some weird glitchy thing?
    Thanks!

  • CFMAIL - Background Image contained in TD Not Displaying in Outlook

    A backgorund image contained in a <TD width="400" background="http://www.abcdef.com/img/background_B.jpg"> does not appear when the html email message is opened in Outlook. However, if you click the having trouble viewing this email prompt the image does display on the web view. Is this a CFMAIL problem? If so does anyone have a work around for or other ideas where to look for a solution?

    As we don't know your code, your imaging library or anything else that you are doing - and my crystal ball is on the fritz - we can't really help :(.
    However, given that you are talking about CMYK the first question is about whether you a re working on a CMYK surface or converting to RGB?  If converting, how?
    Second, what filter is applied to the image?  DCT? Flate?  Other?
    Third, are you considering any DecodeParms on the image?
    Fourth, is the image indexed or not?
    And the list goes on..

  • Background image for whole website not displayed in internet explorer 8

    hi,
    i created a website in adobe muse and set the browser filling to color to choose a background image.
    the background image is displayed well in different browsers BUT not in internet explorer 8.
    what can i do to display it also in ie8?
    greetings

    Could you please provide the URL of the site, and let us check it.

Maybe you are looking for

  • Control Centre - doesn't retain settings

    The version of Control Centre (2.5.060) on my mother board (P67a-c43,  bios v1.19, 20120801) doesn't retain settings.  In fact what would appear to be the "apply" button is showing as blank. Recently I reverted to an older version of the bios because

  • Adobe Illustrator converted to Adobe Photoshop

    Hi there! Basically, I have designs that I have done in Adobe Illustrator that I need to send to someone but they need to be in Adobe Photoshop. I don't know why, they just do. I am a complete imbecile when it comes to stuff like this, I only managed

  • Oracle HTTP Server Crash

    Hi all, i have an application deployed in OC4J, this application, due to dabase locks, its started to respond very slowly (i had some JSP with 102 seconds response time) about 12:50 i had 175 active connection in that OC4J container, some moments aft

  • Seting action on exit of page

    Is there any way to set an action on exit of the page? I mean, in one window i'm uploading files to temp directory and if user presses 'correct' button it targets custom tag which deletes these files. My concern is that if user will leave page withou

  • Need SAP  CRM 4.0 installation guide with screenshots.

    Hi any body please send me the SAP  CRM 4.0 installation guide with screenshots.my mail id Thanks in advance. Message was edited by:         Yaroslav Zorenko mail deleted