Can anyone tell me how to iterate through a cmponent tree in JSF

HI,
I am new to JSF.Can any one help me in iterating through a component tree.
For eaxmple , i have a JSF page.When i send a request for the first time for a page ,
it will build the component tree.So i want to iterate through that component tree.
Actullay my requirement is that in my page, i will have a datatable and some command buttons.
when i select a row in a datatable,it should be highlighted.But again onpage load, highlighting is missing.
So i want to save the id of the element, which i selected in the table in the request object.
Pls help me out....

The view root is available by FacesContext#getViewRoot(). Its getChildren() returns a List<UIComponent>. For every UIComponent you can get the children by UIComponent#getChildren() which on its turn also returns a List<UIComponent>. You can easily write a recursive method for that.

Similar Messages

  • Can anyone tell me how to fix my iPod. I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    Can anyone tell me how to fix my iPod.I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    See the action for that error included here:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • I am new to mac... and there is a solid black bar on my screen, that announces what page/icon I am on, then scrolls through every screen and announces what it is.  Can anyone tell me how to remove this?? Please? Thank you

    I am new to mac... and there is a solid black bar on my screen, that announces what page/icon I am on, then scrolls through every screen and announces what it is.  Can anyone tell me how to remove this?? Please? Thank you

    You may also find these Links of Interest...
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    Find Out How (Video)
    http://www.apple.com/findouthow/mac/

  • Can anyone tell me how to I get an old account information and recorded messages from a conversation

    I am totaly confused by eircom and efibre.......last year I was in arrears with eircom to the tune of( as I thought) of €357.66and I was disconnected but in the long run I got a huge bill in my door of  €656.48 , when I had to the money to pay the original amount, I was put through to efibre who told me that remaining amount of €298.77 shouldnt have been on my account and they would take it off I was also given a new account and phone number. I have now got several bills from my old account plus a letter from a company called BCW (debt collectors) who are treathening to take legal proceeding against me...... can anyone tell me how do I get my old account information and that conversation I had that day??

    Thanks Tracey,I got a letter from the debt collectors BCW on Thursday to say if I didn't respond to that letter within 5 days they were going to take legal proceeding against me. 10 minutes from receiving the letter I got a call from BCW to say that eircom had been in touch with them to say the issue has been resolved and that I don't owe the money,I am now waiting on a letter from BCW to tell me same so as I have it in writing. So hopefully that is the end of the issue, Many thanks Confused 1

  • Can anyone tell me how i get to speak to someone in customer service? they are retiring Forms Cental and i really need to speak to someone about the renewl of my subscription. THe live chat has been unavailable for two weeks and there is no other option t

    Can anyone tell me how i get to speak to someone in customer service? they are retiring Forms Cental and i really need to speak to someone about the renewl of my subscription. THe live chat has been unavailable for two weeks and there is no other option to get in touch with these people. Any ideas anyone?

    Hi SwarovskiUK,
    I'm sorry to hear that you've been having trouble contacting Customer Care. Live Chat is certainly available--are you not seeing the chat option on the Contact Customer Care page? Or are just not able to get through?
    In any case, I should be able to help you myself. What can I do for you?
    Best,
    Sara

  • Can anyone tell me how to rid of error code 2330 itunes

    can anyone tell me how i can get rid of error 2330 so can update the itunes on windows 7 pc

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • HT3702 Can anyone tell me how to stop zoosk from taking money out of my account

    Can anyone tell me how to stop zoosk from taking money out of my account I want to close the account they told me I have to close it through iTunes I do not have a PC to go online with just my iPhone please help I need to stop this money from coming out of my account I cannot afford it

    If this is a subscription, see:
    http://support.apple.com/kb/HT4098
    Regards.

  • Can anyone tell me how to get rid of Genius?

    I don't use Genius and don't even want to be reminded it's on my system. I don't want to wait while Genius updates, don't want to wait while Genius results are sent to or from Apple, don't want Genius playlists on my new iPad or anywhere else for that matter. Can anyone tell me how to get rid of Genius on my iMac, MacBook Air, iPhone and iPad? Thanks.

    I'm kinda confused...
    James Bailey wrote:
    No, I'm saying that music is promoted through advertising on the ITMS
    Is it?
    I've never seen any advertising in iTunes.
    Genius is a feature I don't use but it's impossible to ignore. I'd just like it to not be there, simple as that.
    I ignore it just fine.
    Turn off Genius in iTunes menu - Store and turn off the Genius sidebar.
    Won't see it, don't use it.

  • I've used Firefox for years. 2 days ago it wouldn't open. I uninstalled it using Revo uninstaller and put it back. Its still the same. Can anyone tell me how 2 fix this or change my mail settings for I Explorer. thx

    and now it just wont open can anyone tell me how 2 change my mail going 2 firefox and start going 2 i explorer please

    For gmail there are no settings to change, you can access gmail from any browser just by going to the gmail site and logging in.
    The [[Firefox will not start]] article should help with the problem you are having with Firefox.

  • I am new to Mac Pro but am purchasing one online.  can anyone tell me how to get the information from my Toshiba onto the Mac.  there are no stores in the state I live in.  Do I need to find a location and will they do a transfer from my I Tunes etc?

    I am new to Mac Pro and am purchasing one online  tonight.  Can anyone tell me how to get my information - Itunes, photos, and videos transferred onto the Mac from my Toshiba.  the state I live in doesn't have an Apple store but I could take it to Minneapolis when I go.  Any ideas where to begin?

    You might profit from a visit to a Minneapolis Apple store. With a brand new Mac, I think they will be most helpful - not just with transferring files, but with other advice as well. And I strongly recommend you invest in a back up drive. The Apple folk can help with that as well.

  • Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched?

    Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched or activated?

    If it's not printed on the card, then you'll need to check the receipt from the purchase of the card. There's no way to check the value from the card itself without redeeming it.
    Regards.

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • Hello, can anyone tell me how to share my home macbook pro to my imac in the office? I tried file sharing but never worked for me...appreciate if anyone can help!

    Hello, can anyone tell me how to share my home macbook pro to my imac in the office? I tried file sharing but never worked for me...appreciate if anyone can help!

    I should have added to my posting (instead of using this "reply" -  it is the server passwork it is asking for and I have never known that I had one and assumed it was the passwork I always used for this type of thing.

  • I am trying to download music on to my 4th gen Ipod touch but it keeps saying that It is unable to download song/ could not download at this time. Can anyone tell me how to download my music?

    I am trying to download music on to my 4th gen Ipod touch but it keeps saying that It is unable to download song/ could not download at this time. Can anyone tell me how to download my music?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... (But can take Longer..)
    Release the Buttons...

  • My ipad is no longer syncing automatically when I connect to my macbook pro.  Can anyone tell me how to fix this?

    I've had an ipad since late December 2010.
    In the past, it has always automatically synced when I connect it to my macbook pro.
    Now, when i connect it...nothing happens.
    Can anyone tell me how to fix this?

    The first thing to do is to launch iTunes on your Mac. Go to Preferences - under the iTunes heading in the menu at the top. Click on Devices. Make sure that you uncheck the box next to - Prevent iPods, iPhones and iPads from syncing automatically. Quit iTunes and restart your Mac.
    Connect your iPad to the Mac and launch iTunes. Select your iPad under the Devices heading on the left side of iTunes. Then click on the Summary Tab at the top right side of the iTunes window. Put a checkmark (select) in the box next to  - Open iTunes when this iPad is Connected. Make sure that all of the other boxes are checked as you desire according to what you want to sync. Click - Apply - in the lower right corner to sync.
    Disconnect your iPad after syncing. Quit iTunes. Then connect your iPad again and iTunes should launch and sync automatically.

Maybe you are looking for

  • Common custom swatch libraires

    I have several custom swatch libraires that I'd like to share among all my Adobe apps & macs. Is there a commom place that I can put them, so I dont have to copy to every Swatch Libraries folder for each app? I'd like to have 1 common place to put th

  • Need help wrt query urgently

    Hi , I have two tables "table1" and "table2".Structure of the both tables are below: Table1: CustomerId CustFname CustLname Convertion_Date Table2: CustomerId DFname DLname CustomerId is used for joins . Now i need a query based on conversion_date. I

  • Airport Extreme for my ibook G3

    Im just about to order a airport extreme card for my ibook G3. i was just wondering if anyone knows if it will definately work for it.i dont have wireless in my house.will i still beable to connect using my laptop?

  • I can't access my account and i ask to reset my password and i don't get an email

    hello i want to cancel my account

  • How to sort playlists?

    Hi, On the left hand side of the screen is my list of playlists. I find that when I make a new one and want to add songs to it, it is rarely titled so that it ends up near the top of the list where I can see it, and I end up adding ! or * to the fron