[SOLVED]Not render menuList in menu3 facet if no items

JDev 10.1.3.2.0 ADF BC/ADF Faces panelPage
I'm using the MenuModel to build my menus. Some pages will not have a startDepth of 2 menu items. If no items, I do not want to render menuList in the menu3 facet.
I can't figure out what expression to place in the rendered property.
Thanks,
Tom
Message was edited by:
user556303

Thanks for your quick reply John.
A quick look at af:page shows that it is basically the same as the panelPage except for how it handles menus. I went the panelPage route because of the SRDemo application.
I'll see how easy it is to convert my pages to use af:page instead.
Thanks,
Tom

Similar Messages

  • Show/Hide menu3 facet?

    Hi,
    In JDeveloper 10.x is it possible to hide a menu3 facet? I tried this:
    <%-- Display the third level only if the menu goes that deeply. --%>
    <af:switcher facetName="#{menuModel.menuTier}">
      <f:facet name="3">
        <f:facet name="menu3">
          <af:menuList var="menuBarList" startDepth="2" value="#{menuModel.model}">
            <f:facet name="nodeStamp">
              <af:commandMenuItem text="#{menuBarList.label}"
                                  action="#{menuBarList.getOutcome}"
                                  rendered="#{menuBarList.shown and
                                              menuBarList.type=='default'}"
                                  disabled="#{menuBarList.readOnly}" immediate="true"/>
            </f:facet>
          </af:menuList>
        </f:facet>
      </f:facet>
    </af:switcher>But that does not work. When the menu list (the one that appears on the left hand side) is empty, we don't want it to be displayed. In other words, if there are no menu3 items, don't display any part of menu3 (leaving the space open for page content). This would free up a substantial part of the browser screen real estate for content (~200 pixels).
    Any ideas?
    Thanks!

    Anyone?
    Essentailly, I want to hide a menu3 facet when the model indicates that the 3rd tier does not exist:
    <f:facet name="menu3">
      <af:menuList var="menuBarList" startDepth="2" value="#{menuModel.model}">
        <f:facet name="nodeStamp">
          <af:commandMenuItem text="#{menuBarList.label}"
                                action="#{menuBarList.getOutcome}"
                                rendered="#{menuBarList.shown and
                                            menuBarList.type=='default'}"
                                disabled="#{menuBarList.readOnly}" immediate="true"/>
        </f:facet>
      </af:menuList>
    </f:facet>The <af:switcher> component does not seem to have any influence over whether or not the menu3 facet gets displayed.
    Thanks again!

  • 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

  • Rendering - Final Cut will not render clips under any of the 3 choices?

    Final Cut will not render clips mov, or dv under any of the 3 choices, including stuff I have done before.

    I realize your problem is solved, but I thought I would post this is case it might helps others in the future.
    Under Sequence-->Render--> OR Sequence-->Render All--> OR Sequence-->Render Only--> make sure you have check marks next to all the different video types ("Needs Render", "Proxy", etc).
    If there is no check mark, then the video won't render - and this can sometimes seem random, like what happened in your case.

  • Missing render file/project will not render

    I'm new to using FCE - just got my iMac with FCE pre-installed a few weeks ago - and have run into a big problem with current project. When I open the program, it tells me one render file is offline and I can reconnect or continue. I have no idea where the file could possibly have gone, so I select 'continue'. But now the project will not render. I have four sequences open in the project file, and have tried everything - locking and unlocking tracks, selecting various combinations of render both, render all, render selection, rendering only audio or video, etc. All the appropriate render selections are checked in every option. But still, the project won't render any of the sequences; the render box comes up for a split second and goes away faster than the eye can follow. I've tried setting the scratch disk; that didn't help. I tried saving the project, closing and opening the project, etc. Nothing helps. It just won't render. Does anyone have any idea how I can fix this problem?

    When I say it won't render, I literally mean nothing happens when I hit the render command. I see the red timeline render bars. However, I see them only when I go to export the video as something else - a mov, dv stream, etc. In the project while working, there's nothing indicating render is required.
    To try and solve this problem of the missing audio clip, I opened a new project and imported the .mov file I was working with initially, which theoretically should have all its parts intact. I made the necessary modifications to the file (essentially starting all over) and then attempted to render. It still won't render. Nothing happens at all when I click any of the render options, even after I've made modifications to the video that would clearly require render - changing the aspect ratio and applying a widescreen video filter. So the program should recognize the changes and render, but nothing happens, whether I choose render from the menu or hit the keyboard shortcut.
    I'm a little hesitant to try scrapping the preferences as suggested above, but I am totally perplexed.

  • Suddenly fla will not render to swf; freeze; CS3

    I have been making swf's for a long time, but suddenly today, my last one for a project,
    it will not render, and program freezes solid.  What should I do?  The fla seems ok.
    preview in html will not work.  Restarts and permissions did not work.
    AS 2.0 Flash CS3

    In case anyone else has this problem, I solved it myself before getting any response from Adobe. I am on a Mac and the problem was a corrupted FLEXnet Publisher (the licensing system) caused, I think, by making a bootable clone of my HD.  Adobe has the solutions here:
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html.
    In my case I just deleted the Flexnet Publisher folder from HD>Library>Preferences and replaced it with an older backed-up version and then CS3 worked again.
    If you are on a PC google Adobe Flexnet Publisher and there are solutions out there.

  • 'Not enough memory' + 'Internal error' x 'Could not render the database' = Parting of company :(

    I can’t believe the amount of concern / disappointment / frustration spread across every associated Fireworks forum re: CS5’s
    "An internal error occurred"
    "Could not render the database"
    "Not enough memory"
    "Crash without notification"
    Etc.,
    We installed the CS5 trial – being more than wary about Adobe’s past releases – and lo and behold, all of the above beared ‘true’!
    This is nothing new of course, we’ve all been experiencing this since CS3 – but hoping against hope - a newer release would solve the poor memory management and general ‘bug-ridden’ code; alas - as per usual, Adobe has not responded with any pro-solution based action, but successfully furthered our frustration with a couple of fresh gimmicks without strengthening the core software.
    As an avid fan of adobe software […and a Fireworks freak] working in a design house that has many different employees with widespread software tastes – I eventually said ‘enough is enough’ after the umpteenth crash [as of 3 weeks ago] and have revisited the Rebel Alliance; ‘yes, CorelDraw’!  No I’m not going to go into some tirade about how much better Corel is etc. - as it has its own strengths and weaknesses, too […but without the hourly crashes] – so to be honest, we figure the time increase in some projects due to using Corel […time is diminishing with each project’s acquired experience] are negated by the downtime of Fireworks; so far, this is holding true.
    This may seem drastic, but it has been a long time coming – that is, implementing a move from our decade invested workflow to a ‘somewhat’ new schema, but due to the disappointing aforementioned, eventually principal / expenditure comparisons / sanity / lack of support all culminate to such, and if there’s no support for the competition, well – then there is ‘no’ competition; a luxury Adobe has taken for granted way too long.
    I truly hope Adobe turns around and fixes their ways, until then – we’ll be supporting those that do – and hopefully along the way, just maybe, with the added funds from disgruntled adobe x-pats – the software will far exceed what I used to love and adore […how I miss macromedia]; honestly, it would be near on impossible to argue which suite was better ‘either way’ – so it may not be such a distant future. Besides, with the market-door Adobe is opening due to such poor software, the new player sniffing around the edges will be welcomed by many with open arms; I know my/our allegiance will go straight to the company with the greatest software stability and sound support, whomever that maybe.
    So here’s to hoping no more, and actually doing! Very sad...

    I am also getting this error message. It happens randomly. Adobe help told me to close and reopen FW and then it stopped happening.  Does this sound like a good solution to anyone?

  • CS4 - "Could not render the database. An Internal error occured"

    I just purchased FW CS4 (full) to replace my ancient
    Fireworks 4 (yes, *4*). Unfortunately, CS4 tries to update text in
    my old FW files and promptly displays a message "Could not render
    the database. An internal error occured." It would really suck if I
    bought this but cannot edit my old FW files! Anyone else having
    this trouble and know of a solution?
    I am using Windows Vista Home Premium on a Dell XPS 420 with
    a quad core processor.

    Can you try the following solution posted at another Thread
    which relates to Vista functioning?
    "Navigate to the program file for the extension manager and
    select properties. On the compatibility tab select the option to
    run as administrator, click on the all users options and select run
    as administrator for all users if desired and then apply. Of course
    the option is only available if you have the UAC turned on.
    Now, re-install the extensions and you should have no
    problems. You'll just have to deal with the UAC everytime you use
    the extension manager."
    Does it solve the extensions installation issue?
    quote:
    Originally posted by:
    Bopjo
    quote:
    Try resetting your Preferences file.
    Nope, same problem. I have encountered a new problem as well.
    When trying to install extentions from the FW exchange I get error
    messages in the extention manager like:
    "Can't create folder...[/path/]"

  • 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

  • Crystal Report Viewer Error: Could not render the page

    Hi,
    I was facing the same issues whereby i creating my crystal report in VS2005 profesional built in crystal report designer. When preview in VS2005 the graph displayed correctly. However, when export to IIS it shows the error could not render the page.
    I am using Windows 2008 server, IIS7.
    I tried to install the CRREDIST x86.msi into my server, however it still could not show out the graph (pie chart) in the localhost.
    Appreciated anyone know this could kindly advice.
    thanks.
    ck

    Hello,
    Crystal Reports 10 is not supported on Windows 2008 Server.
    Please view the information [here|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    Upgrade the Crystal Reports.
    Thanks,
    Bhushan.

  • AIR application with Flex 4.5 will not render content. What gives?

    OK,
    So I've upgraded to Flash Builder 4.5 Premium and I am unable to develop desktop AIR applications with the 4.5 Flex SDK. I start by simply creating a brand new AIR application using the default SDK (Flex 4.5). I set the title property on WindowedApplication and include a simple Label component. The project compiles fine but when I run the application all I see is the adl window in the dock but that's it. If I modify the Main-app.xml file to set the visible attribute to true, I will get a small window but there is no content although the output window shows the application swf being loaded. Checking the release version of the Main-app.xml file shows the correct path location to the swf.
    Here is what I've tried so far:
    Install/reinstall Flash Builder, 4+ times
    Downloaded the trial installation twice
    Downloaded the SDK's for 3.6, 4.1 and 4.5.0. I then copied each SDK folder and merged the AIR 2.6 SDK with each copy. So now I have 6 SDK versions; one pristine and the other with the AIR 2.6 SDK merged. I then added each SDK individually and created an AIR desktop application for each. Each and every one works fine with the exception of the two 4.5 SDK's. They will not render content.
    I created a simple creation complete handler for the application that declares a simple variable and assigns a value to it. I then put a break point on the assignment and it never gets caught. More evidence that the swf isn't getting loaded.
    The computer I'm running on is a Mac Book Pro with Snow Leopard 10.6.7. If I create a web project in each of the 6 SDK's, those will work just fine. What the heck is it with Flex 4.5 and the AIR 2.6 SDK on this machine? I have the AIR 2.6 runtime installed as well as a number of AIR applications that work just fine. I also tried my 4.5 test on my windows machine and that worked like a champ.
    I am completely out of ideas. Finding information has been difficult because everyone is all about mobile so searching for desktop issues is a losing battle. I realize this is a long email but I'm desperate for help. There must be someone out there that knows more about the low level interaction between Flex 4.5/AIR 2.6 and the OS.

    Well, I finally found the issue, a corrupted mm.cfg file in /Library/Application Support/Macromedia. I deleted the file and then adl ran just fine.

  • Asp code does not render for first record in looped recordset

    I have posted this question on a javascript forum as it
    contains javascript code however it was believed to be an asp
    issue.
    The following head section javascript code contains the
    function showBigImage( isource,bigImage,header ) function call of
    discussion:
    var currentImage;
    function showBigImage( isource,bigImage,header ) {
    var theImage = document.getElementById( 'largeimage' );
    theImage.src = isource;
    currentImage = bigImage;
    document.getElementById( 'photoHeader' ).innerHTML=header;
    document.getElementById( 'largeimage' ).alt=header;
    The following rendered looped recordset code illustrates how
    the "header" parameter of this showBigImage(
    isource,bigImage,header ) function call does not render ONLY FOR
    THE FIRST RECORD OF THE RECORDSET as it is blank:
    <a href= "javascript:;" > <td height=36
    valign="middle" class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=images/portable_stage.jpg&width=250','images/portable_stage.jpg',''
    )"> <img
    src="imagescript.asp?path=images/portable_stage.jpg&width=36"
    border="0" alt="" /> </td> </a>
    <a href= "javascript:;" > <td height=36
    valign="middle" class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=images/seated_riserset.jpg&width=250','images/seated_riserset.jpg', 'Portable
    stage configuration using 9 units of the 3 ft x 8 ft platforms in 3
    different heights' )"> <img
    src="imagescript.asp?path=images/seated_riserset.jpg&width=36"
    border="0" alt="" /> </td> </a>
    <a href= "javascript:;" > <td height=36
    valign="middle" class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=images/Stageset.jpg&width=250','images/Stageset.jpg','Portable
    stage configuration using 16 units of the 4 ft x 8 ft platforms'
    )"> <img
    src="imagescript.asp?path=images/Stageset.jpg&width=36"
    border="0" alt="" /> </td> </a>
    <a href= "javascript:;" > <td height=36
    valign="middle" class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=images/Runset.jpg&width=250','images/Runset.jpg','Portable
    stage runset configuration' )"> <img
    src="imagescript.asp?path=images/Runset.jpg&width=36"
    border="0" alt="" /> </td> </a>
    Because of this problem, the caption text does not display
    for this first image record once the thumbnail images are moused
    over. You can view this page example at
    http://www.canchair.com/new_web_product_detail.asp?ProductID=198&ProductFamily=1&ProductFa milySub=10

    Please help with this issue!!!

  • .pdf does not render correctly

    Hello everyone:
    When creating a .pdf from a .html dreamweaver file it does not render properly. Headings go to the left and sidebar images do not display properly. Any ideas as to how to fix this. Using Adode Acrobat 8 Professional and Adobe Dreamweaver CS3. Many Thanks

    Take a screenshot of the page then convert that to a PDF.
    The PrtScr key on the keyboard only captures what you can see on screen (or the active window).
    To get the entire page, either use something like SnagIt (commercial) or use one of the free add-ons for Firefox.
    Edit: or as Paula suggests, create a print stylesheet.
    http://www.alistapart.com/articles/goingtoprint/
    Message was edited by: John Waller

  • Imovie will not render photos with ken burns effect

    I have started to produce a video and have tried to import photos from both iphotos and straight from desktop however when i do this the red bar showing the state of rendering does not move. The photo will not render and therfor i am unable to use the ken burns effect. Could anyone please give me any idea of what i am doing wrong.
    Thanks.

    Hi
    What file type is Your photos eg .tiff, .pict or .jpg ?
    What size are they eg 1Mb, 10Mb or 100Mb ?
    How much free space is there on Your internal (start-up) hard disc ?
    Ps When ready - Don't use Share/Export to iDVD from within iMovie. Just drop Your movie icon
    (with a Star on it) into iDVD theme window.
    OR - Your movie project in iMovie will be harmed and You'll have to re-do it ! ! AND
    the DVD disc will be severely pixelated - extreme low quality Ds
    Yours Bengt W

  • [svn] 3668: Fix for SDK-15941: selectedItem/ selectedIndex does not render as selected.

    Revision: 3668
    Author: [email protected]
    Date: 2008-10-15 15:25:04 -0700 (Wed, 15 Oct 2008)
    Log Message:
    Fix for SDK-15941: selectedItem/selectedIndex does not render as selected.
    Reviewer: Deepa
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15941
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

Maybe you are looking for