Cannot empty a listbox. PLEASE HELP!

Thanks for reading my post.
I have been struggling the whole day to solve a problem with listbox. But I have to ask for help from you guys. thanks in advance.
Here is the scenario:
I have 3 listboxs on my page. The options of the 3 listboxes are dynamically generated based on users input. There is a button that empties all options in listboxes. There is another button to get all selections from 3 listboxes.
Here is what I tested:
1) input something and generate the options for all 3 listboxes, and do some selections.
2) click "EMPTY" button to clean up all listboxes;
3) click "GET" button to get all selections from them. (THIS IS SUPPOSED TO RETURN NOTHING BECAUSE THEY ARE ALL REMOVED)
Here is the problem:
After "EMPTY" all options in 3 listboxes, "GET" button still return all previous selections. ????
Here is what I did about EMPTY and GET
1) EMPTY: I tried all followings:
- listbox1.setItems(null);
- listbox1.setItems(new Option[0]);
- children = listbox1.getChildren(); children.clear()
- I even tried this: listbox1.setItems(newOptionArray), still get the old selections unless I selected something in the newOptionArray
2) GET: the method that I used is listbox1.getSelected();
Any Idea?

Yes guys, you are right. I got confused by the options and selections.
After reading the replies from both of you and following material http://developers.sun.com/prodtech/javatools/jscreator/reference/themes/jsf/listbox_comps.pdf
I finially realized my mistake.
thanks a lot!

Similar Messages

  • HT1420 I have the new version of the macbook pro and I cannot find authorize this computer anywhere on itunes. I have read the directions multiple times and still cannot find it. Please help!

    I have the newer version of the macbook pro and I have read the directions on how to authorize your computer to let you download previous song purchases from icloud onto your laptop, but I cannot find where it says "authorize this computer" at all. I have looked for it everywhere and still cannot find it. Please help!

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • I tried to install ios7 last night and the screen is now on itunes with the usb symbols  Plugged the ipod into the laptop where itunes is stored.  Tried to restore only to be advised that a 3194 error has occured  cannot get any further please help!!

    Hi  I tried to install ios7 last night and the ipod touch now has a frozen screen with the itunes logo and the usb logo  I plugged the ipod into my laptop and tried to restore only to be met with the message 3194 error  cannot restore this ipod  please help thanks

    Hi. The two user tips both describe a sequence of steps that should get your library from the point where it threatens to wipe data from your device to where it is syncing normally, while recovering as much information as possible. It may still be necessary to wipe and reload the device but this should only take place once all the data that can be recovered has been recovered.
    Doing step 1 of 8 and then complaining things aren't the way you want them to be yet strikes me as premature...
    Since you appear to have all your media content, and we are discussing an iPod classic, not an iOS device, the main worries are already taken care of. What's left is ratings, playcounts, playlist membership and checked status. Since your device holds only part of your library at best you could only recover the missing data for the content that is on the device using third party tools.
    Recreating the previous checked/unchecked status of every track in your library from where you are now may not be that easy. Syncing with selected playlists has many advantages, one of which would have been that you would have a named playlist that could have been retrieved by 3rd party software if you had used this method.
    You haven't explained what caused your problem in the first place, but if you have a Previous iTunes Libraries folder holding old copies of your iTunes database (generated with each iTunes update) then it would be possible to restore the most recent of these and then update the library with any changes in your media folder.
    BTW Apple doesn't offer free support for this kind of issue with iTunes.
    tt2

  • When I try to download games eg. dreamland hd light it says the followingl: your request cannot be completed. Please help., When I try to download games eg. dreamland hd light it says the following: your request cannot be completed. Please help.

    When I try to download games eg. Dreamland HD light it says the following: your request cannot be completed. Please help.

    Honestly, these are WAGs but they're all that I can think of.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Finally, if the Restore doesn't work, let the battery drain completely.  Then recharge for at least an hour and Restore again.

  • Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.  AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: toledo-

    Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.
    AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: [email protected]

    Hi Jwalter,
    Thank you for posting on the Adobe forums,Please let us know what is the exact issue.
    Also, if you want help on how to use the service, kindly try the link below.
    Adobe ExportPDF FAQ
    http://tv.adobe.com/watch/insights-on-acrobat-solutions/introduction-to-adobe-exportpdf/
    Thanks,
    Vikrantt Singh

  • HT3743 I purchased an iphone 3g that was to be open to any carrier, I went to restore it to my itunes account and get a 1015 error, can this be fixed.  I am new to the iphone and like the product but cannot buy new.  Please help. THANKS

    I purchased an iphone 3g that was to be open to any carrier, I went to restore it to my itunes account and get a 1015 error, can this be fixed.  I am new to the iphone and like the product but cannot buy new.  Please help. THANKS

    You got ripped off. You bought a hacked/jailbroken phone. That's what error 1015 means. Return it and get your money back if possible and buy a phone from a legitimate source.
    Discussing jailbroken / hacked phones is forbidden by the terms of service. Jailbreaking / hacking voids any warranty and forfeits your right to support here or from Apple. You can not get help here.

  • Since updating my iPhone 3GS to iOS 4.3.3 I have been unable to sync my photos! Keep getting the error message unable to sync and 'the required file cannot be found.' Please help?

    Since updating my iPhone 3GS to iOS 4.3.3 I have been unable to sync my photos! Keep getting the error message unable to sync and 'the required file cannot be found.' Please help?

    Try deleting the iPod Photo Cache on your computer.
    http://support.apple.com/kb/ts1314

  • I purchased as a Download Lightroom 5.5, My pc got a virus. I saved Lightroom on ext. drive. I am trying to reload onto pc BUT it's asking me for a serial number..I cannot find receipt. Please help. I registered when I downloaded purchase.

    I purchased as a Download Lightroom 5.5, My pc got a virus. I saved Lightroom on ext. drive. I am trying to reload onto pc BUT it's asking me for a serial number..I cannot find receipt. Please help. I registered when I downloaded purchase.

    Find your serial number quickly
    You might want to develop a more secure system of saving your serial numbers and other critical information.

  • The older version of iTunes cannot be removed. Please help!

    I had to manually delete iTunes from my Windows 7 PC. When that didn't work, I deleted iTunes from the Registry. There is no older version of iTunes anywhere.
    I still cannot reinstall iTunes. Please help. Thank you.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error that disk cannot be umounted. Please help! Thank you very much.

    My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error disk cannot be unmounted. Please help. What can i do? Thank you very much.

    First have you got a backup of your data? If not try to get one now while you have some access to the drive. The drive is probably faulty and will need to be replaced, without the backup you risk losing the data.
    Have you a bootable external USB drive with Mavericks on it, if so boot from that and try and repair or erase the drive and reinstall Mavericks.
    If you don't have Mavericks on an external drive,  boot from you Leopard DVD ( I am presumimg your profile is correct) and run Disk Utility from there, you may be able to erase the drive and reload Leopard. You can then install Mavericks. Even if all that works you will most likely need a new drive in the near future.

  • HT1918 Can't burn music I purchased months ago, I could only burn the 4 cuts I bought this evening,6/9/12 message said originals cannot be found? Please help itunes would not let me buy a second time, thats a good thing but Im trying to make a music CD an

    Can't burn music I purchased months ago, I could only burn the 4 cuts I bought this evening,6/9/12 message said originals cannot be found? Please help itunes would not let me buy a second time, thats a good thing but Im trying to make a music CD and itunes will not let me?  The music is in my music file but will not let me burn them ! really I tried over and over, now Im just frustrated !
      Please find the original's purchased, my name and email have not changed. Thanks for your time and consideration.
    Jeannie
    7024503288
    [email protected]

    Fixed. /Users/x/Library/Application Support/SIMBL/Plugins/AirKeysInputManager.bundle got corrupted by a badly installed safari extension. Deleting this, then reinstalling adobe air did the trick. I wasn't thorough enough on my first try, it was tricky to find everything associated. I had to look for files in the console log then search for them. Spotlight was missing some deep files, EasyFind worked better for me.

  • HT4847 How do I put my iPhone stored items into my iCloud storage?i have bought an upgrade but none of my phones stored items have moved to iCloud.i can't download new update from apple. due to not enough and yet iCloud space is empty??please help thanks

    How do I put my iPhone stored items into my iCloud storage?i have bought an upgrade but none of my phones stored items have moved to iCloud.i can't download new update from apple. due to not enough and yet iCloud space is empty??please help I don't know what I doing all I know is my phone is iPhone 4 and I can't update it. My phone on contract with t-mobile . Thanks

    You can't have content in iCloud without having it on your phone, you will need to look at deleting items from your device that you don't need. Movies and TV shows from iTunes are possibly a good start because they tend to be large and can be redownloaded at a later date.

  • My iphone and ipad got stolen in london and I changed the ICLOUD password, now I CANNOT access my ICLOUD. please help...cannot access my find my device.

    my iphone and ipad got stolen in london and I changed the ICLOUD password, now I CANNOT access my ICLOUD. please help...cannot access my find my device

    You can't sign into your iCloud account using the new password on icloud.com on your computer?

  • My phone 5 died and now it wont turn back on or seem to charge at all. I've tried several different charger cords and outlets. And all the phone will do is show the empty battery symbol. please help! Any suggestions are apprecaited!?! thanks

    My phone 5 died and now it wont turn back on or seem to charge at all. I've tried several different charger cords and outlets. And all the phone will do is show the empty battery symbol. please help! Any suggestions are apprecaited!?! thanks

    Hello Cooper,
    Thank you for the details of the issue you are experiencing with your iPhone 5.  I would be concerned too if my iPhone was not powering on.  I found an article with steps you can take when you encounter an issue like this.  I recommend following the steps below:
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    My issue is still not resolved. What do I do next?
    Contact Apple Support.
    You can find the full article here:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT4623 How do I install the iOS 4.3 on my iPhone 3GS ? I've tried direct links but it says safari cannot install this ? Please help !

    How do I install the iOS 4.3 on my iPhone 3GS ? I've tried direct links but they it says safari cannot install this ? Please help !

    You can not install anything but the current version of iOS. If you have a 3Gs, then you can install 6.0.1 by plugging it into your computer running iTunes (10.7 or higher).  If you have a 3G, 4.2.1 is the end of the line.

  • My wifi and personal hotspot is inactive. i cannot switch it on. please help me

    my wifi and personal hotspot is inactive. i cannot switch it on. please help me

    Hi shibujamesmba,
    If you are having issues turning on both WiFi and Personal Hotspot, you may find the following articles helpful:
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/TS2756
    Regards,
    - Brenden

Maybe you are looking for

  • Sales and Delivery

    Hi Gurus, Please consider the following scenario. I am using sales order flow (2LIS_11_VAITM) and delivery (2LIS_12_VCITM) Whenever we change or create a sales order in ECC system it would be captured as a delta record and pulled to BW system on the

  • How to pull a Specific files from the local path using SSIS package

    Hi Friends, I have 15 Dealers files .With the Files name as follows 1. ''ACTEST00001_20141112_0408_INV.TXT'' 2. ''ACTEST00002_20141112_0408_INV.TXT'' I will get these files through FTP on Daily basis with changes on date alone. I will have 4 files fo

  • Why is the first MIDI note always delayed?

    Hi all I'm having some trouble recording MIDI in Logic Pro X. When using virtual instruments (built-in Logic instruments) there is a latency issue with the first note. When recording or playing along, the first note I play has quite audible latency,

  • Connecting Bionic to PC with USB - Battery charges, no data storage icon

    When connecting to my PC with the USB cord, the battery icon changes and indicates the connection is made.  No USB storage symbol appears so that I can transfer files to the phone.  Is there a setting somewhere I need to change?

  • EJB-QL rownum

    in EJB-QL of an Entity Bean , can I select the first 10 rows from the table and if it's possible can I change it to the 10-20 rows?