Some kind of getChildrenOfType method

Hi friends,
¿is there any method in the JSF to get the number of children of some type?
I mean, something like this:
    public static List<UIComponent> getChildrenOfType(UIComponent comp, String family) {
            List<UIComponent> list = comp.getChildren();
            Iterator<UIComponent> it = list.iterator();
            List<UIComponent> returnList = null;
            while (it.hasNext()) {
                comp = it.next();
                if (comp.getRendererType().equals(family)) {
                    returnList.add(comp);
            return returnList;
    }thanks...

You're free to write an utility method yourself. As you less or more already did. You can't expect that the basic API's/implementations provides everything you need out of the box :) Best what you can do is to post a feature request at the issuetracker of the JSF specification homepage over there at dev.java.net.

Similar Messages

  • How do I disable those pesky "hover-over" pop ups? I tried the method of right clicking on them and opting out, but it doesn't work. If you guys could add some kind of blocker to your browser, it would be a huge plus!

    # Question
    How do I disable those pesky "hover-over" pop ups? I tried the method of right clicking on them and opting out, but it doesn't work. If you guys could add some kind of blocker to your browser, it would be a huge plus!

    Chris CA wrote:
    Did you createa smart playlist? It's purple with a gear icon.
    And you set the criteria to
    Match rule:
    Date added is in the last two weeks?
    I tried it, but couldn't get it to work. I think I had trouble with the Rule. I put a Rule in as follows: Data added in the last five hours? I added music (data) but nothing appeared in my Smart Playlist. Oh yes - I named the playlist: Recently Added.
    What did I do wrong? Is it necessary to have a question mark at the end of the Rule? I couldn't find anything on how to create a Smart Playlist in Help. There is stuff in there, but it does not go into much detail, i.e., nothing on the proper wording of the Rule.

  • Some kind of sound coming from macbook pro 13', some kind of sound coming from macbook pro 13'

    some kind of sound is coming from system

    Liquid spills, why your MacBook chassis is a one-way valve for spills
    After a substantial spill many people will turn their notebook upside down and shake it, not only does this not work, but it spreads liquid havoc throughout your machine and makes things often as bad as possible.
    The keyboard itself acts like a one way valve in the case of a substantial liquid spill. While liquid pours into the bottom chassis easy, it does not come out easily at all, and in the case of any spill, most of it will not come out by turning it upside down. Disconnect all power and contact Apple for diagnostics and repair.
    Do not attempt to, after a spill, ‘dry out your MacBook’ and test it
    After a spill most people invariably try to “dry out” their notebook by various methods, including hair dryers and otherwise. This both does not work, and after a substantial spill of any magnitude, even if the liquid was water, residue is left behind.
    There are additionally many very tight places inside your notebook where liquids will linger for a very long time, and cause corrosion or worse.
    Immediately unplug your notebook and contact Apple for in shop diagnostics and parts replacement.
    In the case of very minor spills people will “dry out” their notebook and feel success that their notebook is working ok, however invariably in nearly all instances after 4-14 days an error / fault pops up and is usually followed by more.
    In case of a spill, damage estimates are impossible,.....anything can be fixed, without question.......the question is cost.
    contact Apple for in shop diagnostics and cost estimation ....possible parts replacement.  

  • Is there a way to add some kind of meta data to joboptions which you can use later on to check if the custom joboptions are actualy used?

    I'd like to be able to check if clients actually used the jobtopions I provided them with.
    Is there a method availabe to let the joboptions add some kind of signature or version controll when a PDF is created using these joboptions?

    Have the job option used attached to the PDF.
    This can be done through configuration of the job option.
    +
    +
    Be well...

  • Recently when opening up Photoshop, my Adobe CS6 Master Collection pops up saying there's some kind of offer going on the Creative Cloud.  For awhile I was just able to close out of it and go about my business on Photoshop, but now it's not allowing me to

    Recently when opening up Photoshop, my Adobe CS6 Master Collection pops up saying there's some kind of offer going on the Creative Cloud.  For awhile I was just able to close out of it and go about my business on Photoshop, but now it's not allowing me to open Photoshop unless I sign up/pay.  I'm quite confused?  I really NEED to have access to Photoshop ASAP.

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • After upgrading to lion vevo, youtube, and hbo no longer plays videos. I'm assuming this is some kind of plug-in issue. How can I resolve it?

    After upgrading to lion, vevo, youtube, and hbo no longer plays videos. I'm assuming this is some kind of plug-in issue. How can I resolve it?

    Adobe has published a list of known issues relating to Mac OS 10.7 Lion here:
    http://kb2.adobe.com/cps/905/cpsid_90508.html
    The download page for Flash Player for Mac is here:
    http://get.adobe.com/flashplayer/?promoid=ISMRZ

  • I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    It can be done with analog but not digital thanks to "good 'ol" HDCP copy protection which apple (and most other manufacturers) unfortunately respect.
    So you can take the analog output from your cable box (component -- 5 cables -- if it has it but generally they all have composite -- 3 cables) and feed it into some kind of converter or into some appropriate pci card for your mac pro.  But none of them are going to let you directly use the HDMI output from the box to your computer.
    Bottom line, no single cord is going to work and it will never be the higher quality digital picture you get on your tv.
    Some qualification:  There are boxes that I think support hdmi input.  Look at Blackmagic.  But I still don't think you can get around the HDCP from the cable box (might depend on the kind of cable box). 

  • I dropped my phone in the water I know it's not covered with the Warranty so what can I do can I trad it in and get a new one and pay some kind of money or do I have too just buy a whole new phone?

    I dropped my phone in the water I know it's not covered with the Warranty so what can I do can I trad it in and get a new one and pay some kind of money or do I have too just buy a whole new phone?

    The genius bar folks will be glad to help...and if you have backed up your iPhone in iCloud they will restore the backup to the replacement iPhone for you while you wait.
    Call or email for an appointment, you don't want to add to your frustration by standing around waiting for someone to get free to help you.

  • I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.

    I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.
    Also, I had to install the software twice on my same computer before because I had to reboot the computer. I don't know if this affects the limit.

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • I have a MackBook A1181 I need to upgrade my Safari so Outlook will work and would like to get some kind of word/writing tool on it... the info is:  Model Name:     MacBook   Model Identifier:     MacBook1,1   Processor Name:     Intel Core Duo   Processo

    I have a MackBook A1181 that I bought off Ebay :/ it came with pirate discs and no info....I need to upgrade my Safari so Outlook will work and would like to
    get some kind of word/writing tool on it... the info is:
    Model Name:          MacBook
      Model Identifier:          MacBook1,1
      Processor Name:          Intel Core Duo
      Processor Speed:          1.83 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache (per processor):          2 MB
      Memory:          2 GB
      Bus Speed:          667 MHz
      Boot ROM Version:          MB11.0061.B03
      SMC Version:          1.4f12
      Serial Number:          4H631CVDU9B
      Sudden Motion Sensor:
      State:          Enabled
    Can anybody help?!

    First correct the pirate disc issue. Buy OS X 10.6 Snow Leopard from Apple for $19.99 here http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Snow Leopard is the latest version your macbook 1,1 will run. Oitlook is part of the Microsoft Office suite, if you want outlook you'll need to also purchase Office. If you can get by with Apple's mail program there are free alternatives to Office like Libre Office or Open Office.

  • Looking for some kind of Docking Bar...

    I am not exactly sure what to call the item I am looking for, I can only describe it. I need some kind of small bar to just keep all my coords and wires plugged in at home at my desk so that when i come home I can just slap the bar on the side of my macbook pro and be done with it.
    I know many are going to say to just stop being lazy and plug them in but my roommate has a computer on the same desk and its a pain in the butt fishing for all my wires every time I come home. I also don't have the room nor the money to afford a full docking station.
    Thanks for your advice

    kudagra wrote:
    I am not exactly sure what to call the item I am looking for, I can only describe it. I need some kind of small bar to just keep all my coords and wires plugged in at home at my desk so that when i come home I can just slap the bar on the side of my macbook pro and be done with it.
    I know many are going to say to just stop being lazy and plug them in but my roommate has a computer on the same desk and its a pain in the butt fishing for all my wires every time I come home. I also don't have the room nor the money to afford a full docking station.
    Thanks for your advice
    Will this work for you?
    http://www.cultofmac.com/gorgeous-docking-stations-allow-you-to-easily-use-your- macbook-as-your-main-work-machine/39125

  • Will apple tv work with a hdmi splitter of some kind ? TV only has 2 hdmi ports and both are in use

    will apple tv work with a hdmi splitter of some kind ? TV only has 2 hdmi ports and both are being used .
    If splitter will work any recomendations as to best type to use

    The Hatter,
    I am a novice at Mac so I read all I can.  From what I understand the NEC monitors I bought require Display Port for their maximum performance.  The GTX 680 only has DVI outputs.  Difference from what I understand is larger bandwidth with the DP.
    You said I have the 4000 for CUDA.  I am not all that familiar with CUDA and when I do read about it I do not understand it. 
    A concern I have is, that if I connect the 2 high end NEC monitors via the 5770, using it's 2 Display Ports I would have nothing connected to the 4000.  Is the 4000 doing anything with nothing connected?  I read where in a PC system the 2 cards would interact but in a Mac system they do not.
    Bottom line, as I see it, the 4000 will not be useful at all to me, since I want a dual monitor set-up.
    So far the 5870 seems the best choice, higher band width than the 5770, and it has 2 Display Ports to optimize the NEC monitors.
    I'm not sure how fine I am splitting hairs, nor do I know how important those hairs are.  I am just trying to set up a really fast reliable system that will mainly be used for CS6 and LR4.  Those NEC monitors are supposed to be top notch.

  • I am so frustrated. I found some kind of Apple chatline on my Iphone and was communicated with Krystal when we were cut off. I am know on my computer because I cannot find it on my phone. I am trying to find out how to use Icloud to locate my phone in my

    Where did I leave off? Anyway, I found some kind of chatline on my phone. She was in the midst of helping me to use the computer to call myself. I have my phone but I often lose it in the house. I was told that the computer can make the alarm go off. Can someone help me?

    Did you set up Find My iPhone when you first set up your phone? If so, you can log into icloud.com with your Apple ID and use Find My iPhone there. If you didn't, there is no way to do what you are asking.

  • Iphone 5 is taking too long to download through EDGE why????????Please help i just wnat to confirm that it is the normal behaviour or it is some kind of problem please help

    iphone 5 16 gn black my iphone is taking too long to download apps from apps to download on my iphone so please help from overcoming this problem
    i just want to know this is the normal behaviour or it is some kind of problem

    You have to turn on 3G/4G/LTE and be in a coverage area for such to happen.
    Or connect to wifi.
    Normal behavior for Edge is very very slow.

  • The entire visual display on my iMAC screen has gone into some kind of " negative" (probably when I put something down on the keyboard....derr!) I have not found any way to gety it back to "normal". Please help

    The entire display on my iMAC has gone into some kind of "negaive" (in the photo-sense. Any clues on how to get it back to normal?

    Open the Universal Access pane of System Preferences, click on the Seeing tab, turn off White on Black, and drag the Contrast slider all the way to the left.
    (60564)

Maybe you are looking for

  • PS CS6 stealing focus in OSX

    This happenes often, but not consistently. I'm using CS6 (regular) with OSX Lion, 16GB RAM. Once I have a few files open, Photoshop starts "stealing" the cursor focus, which is to say if I go to any other application, as soon as I make one click, PS

  • [SOLVED] Can't get Skype to work.

    Hello, I just installed Skype using the Arch wiki and when I roll the mouse pointer over the start screen Openbox restarts and I'm back at my SLIM login screen. No clue what's going on. Last edited by ManBlue (2010-10-06 12:11:08)

  • Cannot Change Photo Caption in Lightroom 2.3

    I am not able to get Lightroom 2.3 to change the caption of photos taken with a Sony A100.  The caption reads "Sony DSC."  All of my efforts to change this caption to something else have failed, including use of the "Save Metadata to File" command. 

  • Aperture 2.1 hangs on import...

    Everything worked fine before updating from 2.0 to 2.1 but now i cannot import anything to aperture. When i click on IMPORT the application hangs. Restarting did not help Any ideas? Thank you very much.

  • What exactly is a charge cycle?

    Hi, everyone! So I recently just bought a MacBook Pro with Retina display (about 4 days ago) and I'm really trying to take of it, and it's battery especially. I've tried looking up some information on the best ways to take care of it, and I always co