How to disable "Expand All" and "Collapse All" when no node in a tree

I have a <af:tree> inside <af:panelCollection>.
All items under viewMenu like "Expand", "Expand All Below", "Collapse All Below", "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are implemented by default.
When there is no node in a tree, "Expand", "Expand All Below", and "Collapse All Below" are grey out.
However, "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are still enabled to be clicked.
Is there any way we can diable them when no node?

When I highlight last node in the tree and all nodes are collapsed, I see "Expand All Below" enabled but "Collapse All Below" disabled. Which is expected. Expand All Below will expand all the child nodes under a node.
QA filed a bug said that "Expand All Below" should be disabled since no node below it. However, I don't find any place to control them. Can you confirm this? Or you know some way to do this?It it not a bug then. You don't have to control it and framework takes care of enabling and disabling it accordingly.
If you need to expand all the nodes programatically, check this out.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/78-man-expanding-trees-treetables-354775.pdf
-Arun

Similar Messages

  • How can I disable e-mail and text messages when I'm close to or over my data quota ?

    How can I disable e-mail and text messages when I'm close to or over my data quota ?
    Is this possible? I don't see any options?
    All I see is this:
      Receive confirmations of many account transactions via Email and/or free Text Alerts delivered right to your cell phone. You can receive these confirmations for  
       transactions done online, over the phone or from your handset. Account management Text Alerts do not count against any Messaging allowances.
          Your bill is ready for review.
         Payment Confirmations: Your payment has been  received    Your credit/adjustment     has been applied.1
         Account Activity Confirmations     Plan changes     Feature changes1

    What phone?
    You would need to disable data on the phone itself.  You wouldn't do it online on your account.
    Note also that text messages do not count toward your data allowance.

  • How to disable iMac screen and not to put it into sleep?!!!

    I would like to play a movie on my iMac but to watch it on my LCD TV. How to disable iMac screen and not to put it into sleep. PLS have in mind that ctrl+shift+ eject does not work, it makes my iMac screen go  black as well as the  tv screen.So far, i have red many articles concerning this subject, but no one seems to have the right answer. I simply can´t believe that apple did not think of it, as it is nothing new ....
    Thanks

    My brother has eight cats, so your not along. Fortunetly his go outside.
    I have been talking to the people over at macforums and they had some good thoughts. One guy suggested going analog and soldering in a rocker switch on the cable connecting a hub to the computer, turn off switch turns off keyboard and mouse.
    I was prepared to try that but a great idea came along. Arch, you might be interested in this too. Buy a cheap (found one locally for $20) usb kvm switch that takes one usb keyboard and mouse and connects it to two pcs/macs and only connect one of the outs to my system. There is a button to switch between the two, so when I want to disable the keyboard and mouse, I just switch it to pc2, which is not connected to anything.
    Cheap and easy solution. I wish I could of figured out how to do this with software, since there would be no money if it was freeware, but I guess you cant win them all.
    Thanks everyone for chiming in!

  • How to disable the dashboard and spotlight for the latest Iion OS

    How to disable the dashboard and sportlight function in the latest Mac OS?

    to disable spotlight, open the terminal and type "sudo mdutil -a -i off" without the quotes. ( You will be prompted to enter your admin password.)
    to disable dashboard:
    Open Terminal, and then type this command, followed by the Return key:
    defaults write com.apple.dashboard mcx-disabled -boolean YES
    This tells the system that you no longer wish to have Dashboard available. However, the Dashboard task is actually “owned” by the Dock, so to make your changes take effect, you need to restart the Dock. The easiest way to do that is to type this command into the Terminal (and press Return when done):
    killall Dock
    After the Dock restarts, hit F12 and you’ll see…nothing at all. If you run Activity Monitor, you also won’t find any Dashboard widgets in the list of tasks, even if you had several open when you ran the above command.

  • How to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi?

    I'd like to how to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi.
    Any help would be appreciated.

    NeoChang:
    You can modify the installation package using the Adobe Customization Wizard to toggle the "Display PDF in Browser" but I have not found a setting to disable JavaScript from the Wizard. I have created a script which makes the changes, but it has to be run for every user since that info is stored in the User hive of the Windows registry.
    Disable JavaScript:
    REG ADD "HKCU\SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /f
    Disable Browser Integration:
    REG ADD "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bBrowserIntegration /d 0 /t REG_DWORD /f
    Michael
    ~Simplicity of Character is a Natural Result of Profound Thought~

  • How to disable the maximize and minimize button of JDialog

    How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.

    Btw, isn't it a little strange to ask thisquestion...
    Actually, I thought it was meant to be sardonic...
    Dialogs don't have those buttons, so the question
    n should be to the OP how did he/she get them in the
    first place? Cuz they aren't using JDialog to do it,
    unless it's something to do with a specific look &
    feel.I somehow missed that, good point :-)

  • How to disable external VGA and also enable onboard VGA

    hello,
     my spec is
    cpu corei5 ivybridge
    mis zh77A GA43
    vga hd7770 msi
    i want to know, how to disable external VGA and also enable onboard VGA ??
    and
    i want to ask too, if i disable external VGA In MB, it is my external VGA still consumption power? or i must unplug my external VGA ?
    how much different power consumption between external VGA and onboard VGA on idle time?
    because my computer each night be used for download, i want to save power as i can...
    also there is a eco mode? i want to know about eco mode, how much power can be save under eco mode? on idle time computer
    sorry my bad english

    Well remove the HD7770 and is disabled and doesn't consume any power. You can't enable or disable it the discrete vga when pc is in use. That board does also not support Virtu.
    The possible power saving beacuse of eco mode depends on the individual systems. There is no general value. Just try it. 

  • How do i switch information and phone number when they both say no service

    how do i switch information and phone number when they both say no service

    Please re-phrase the question. This doesn't make a lot of sense.

  • How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard.

    How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard. (I selected 'Fit to scale' and there's a huge gap on the top and bottom).

    Those margins are usually reported from the printer settings to Acrobat. Meansif you have, for example, an inkjet printer and that printer can not print seamlessly, then there will be a minimum margin.
    Check your printer's page settings.

  • How to fix keyboard clicks and lock sounds when they are on in setting , sounds and still do not work?

    How to fix keyboard clicks and lock sounds when they are on in setting , sounds and still do not work?

    Double-click the Home button and swipe the Task Bar to the right. Check Volume and Mute Settings.
    Message was edited by: Diavonex

  • Displaying a mixture of text and links in a single node of af:tree

    Hi,
    I want to display few links embedded in text as a node in <af:tree>.
    For example, I want a single node in a tree to show three links with text - "Different type of email services are gmail, yahoomail,hotmail".
    (gmail,yahoomail and hotmail are links)
    Is there a good way of displaying this? I tried following options
    1) I have a property named "linkText" in a bean instance mybean of MyBean.java. "linkText" contains required text and "a href" tags to display links. I used the following code in jsp page
    <af:tree>
    <f:facet name="nodeStamp">
    <f:verbatim>
    #{mybean.linkText>
    </f:verbatim>
    </f:facet>
    </af:tree>
    <f:verbatim> displays the EL expression as it is. I am not able to access the value.
    2) I also tried to use <af:outputFormatted>. Though it supports "a href" tag, it does not support "target" attribute of the same tag.
    Is there any other way of doing this?

A: Displaying a mixture of text and links in a single node of <af:tree>

On a related note ...is it possible to call a commandLink to call an existing java bean/function within an outputText?
For example:
Say I had an outputText that dumped a /etc/hosts file and I wanted to put in a command link to ping each host and pass the particular IP address to it. What would be the best method for doing that?
135.122.29.122 host1.me.com {color:#ff0000}_PingMeLink_
{color}135.122.29.117 host2.sd.me.com _{color:#ff0000}PingMeLink{color}_
So can I embed this in an outputText somehow or is there a better way to do this?
&lt;af:commandLink text="PingMeLink"
action="#{NetworkController.PingAHost}"/&gt;
Thanks for your help!

On a related note ...is it possible to call a commandLink to call an existing java bean/function within an outputText?
For example:
Say I had an outputText that dumped a /etc/hosts file and I wanted to put in a command link to ping each host and pass the particular IP address to it. What would be the best method for doing that?
135.122.29.122 host1.me.com {color:#ff0000}_PingMeLink_
{color}135.122.29.117 host2.sd.me.com _{color:#ff0000}PingMeLink{color}_
So can I embed this in an outputText somehow or is there a better way to do this?
&lt;af:commandLink text="PingMeLink"
action="#{NetworkController.PingAHost}"/&gt;
Thanks for your help!

  • How to set 'Expand All Conversations' as default in Mail.app

    Can anyone suggest a way that 'Expand All Conversations' can be set as the default layout. I realize how it can be implemented from the menubar command or via the message's triangle icon, but each time I close Mail, the app reverts to the closed layout. I would prefer to retain the expanded layout at all times (in the same way the user can tick off 'Organize All Conversations' and retain it across restarts).

    You can create a custom keyboard shortcut to expand all conversations easily.
    - Go to System Prefs
    - Select the Keyboard icon
    - Select the Keyboard Shortcuts tab
    - Click Application Shortcuts
    - Click +
    - Select Mail from the Applications drop down
    - Enter exact Menu item " Expand All Conversations" without quotes of course
    - then choose a shortcut you prefer
         - Suggest testing out the shortcut you prefer on Mail to make sure it is not currently used
    - Click Add
    - When you get back to your Apple Mail, you can now use the shortcut everytime you want to expand all conversations...
    Unfortunately, I couldn't find any other solution so far...

  • How to remove Expand All in view menu of tree table

    Hi,
    I want to remove Expand All in view menu of tree table. How to do that?
    Regards,
    Raghu.

    I am having the exact same problem.
    However, I believe that displaying large amount of data via a tree table is fine as the user is able to quickly drill in to the data of interest.
    It is just that the 'Expand All' option (as implemented) does not make sense in my case.
    Given that I cannot hide it, is there an easy way to change it's behavior so that it does nothing (or provide an 'No implemented' alert).
    I don't have the time/experience to implement custom menu items.
    Thanks

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • Design Studio : How can I expand all hierarchy at once in dimension filter

    Dear Colleagues.
    I am currently working on design studio. I need your advises to implement BW hierarchies in my dashboard.
    Is it possible to expand all hierarchy in Dimension Filter of Design Studio?
    I tried to expand hierarchy in data source api, like 'expandNode' or 'setDrillLevel'.
    These functions can be expanded all hierarchy in Cross tab. but it can not be applied to Dimension Filter.
    Please help me to achieve this.
    Thank you in advance.
    Best Regards,
    K.Min

    I don't see a way to achieve this with the Dimension Filter or the Filter Panel
    I think it would be a great idea to add to Idea Place at ideas.sap.com

  • Maybe you are looking for

    • ITunes 7.4 with iPhone

      Well, just upgraded to 7.4. No hangs with iTunes for now. However. It doesn't recognize my iPhone, I get some USB driver thing that comes up, 1st time it was searching for the driver, then said it succeeded. Now starting up iTunes with phone connecte

    • Error in BIC mapping

      Hello Pals,                              Am using BIC mapping for converting a flat file to xml, am able to convert all formats of flat file but BIC mapper is throwing error if my input file has characters like ä , Ü and § . Upon  removing the specia

    • New Computer, new itunes, old iPod

      My computer recently breathed its last and my hard drive was destroyed, so having purchased a new one and installed itunes I plugged my iPod in only to find there is no obvious way of transfering songs from the iPod to iTunes. I've authorised my acco

    • Can't update iTunes 10.5.3 to 10.6.3: not shown in Software Update

      I want to update my iOS devices to iOS 6.0. When I click a device's Update button in iTunes, I get an alert: A new iPad software version (6.0) is available, but requires iTunes 10.6.3. Would you like to download iTunes 10.6.3 now? with Don't Download

    • System extensions can't be used

      After a major freeze I managed to restart using the install disk and did a major cleanup.  But I can't print anything -- and suspect a problem with one of the automatic updates from Mac involving the printer drivers.  I keep on getting notices re 25