Can't remove items from the selectMenu

I am using selectMenu as:
<a4j:region selfRendered="true"  id="text">
            <h:selectOneListbox id="symbol" value="#{user.name}">
              <f:selectItems value="#{user.temp_list}" />
          </h:selectOneListbox>
<a4j:commandButton action="#{user.getData}" reRender="symbol" value="Get"/>
</a4j:region>temp_list has following three values when page loads:
temp_list.add(new SelectItem("Sunday"));
temp_list.add(new SelectItem("Monday"));
temp_list.add(new SelectItem("Tuesday"));Now in user.getData i want to remove items one by one based on the selection made by the user. The code is:
temp_list.remove(0);
this.setTemp_list(temp_list);But the problem is that if user selects Sunday for example, it remove it from the list but next time when user select Monday it removes monday but BRING BACK SUNDAY AGAIN IN THE LIST. Why is it so?

BalusC wrote:
I don´t understand you.Actually i was asking about the code which i mentioned in my last post.
Okay then what could be the solution? What my thinking is that calling list.remove actually removes the item from the list permenantly, isn't it? If so then why does it showing me again in the selectMenu?

Similar Messages

  • Can I remove items from the Services menu?

    I think the subject line says it all: can I remove items from the Services menu? I have a number of items in the Services menu that I never use and I would like to make the menu shorter to make it easier to access the items that I do use.

    There are a couple of things you could try. There's an application called Service Scrubber that is supposed to do this. But the web page says it's for 10.4, though it says it might work on 10.3
    Alternatively, you can edit the Info.plist or Info-macos.plist file in each application bundle to remove its service from the Services menu. This post at Mac OS X Hints has a pretty detailed description of how to do it. I tried this on my iMac running 10.3.9 and it worked just fine.
    Don't know about the Service Scrubber app, but if you edit the plist files, you'll need to log out and log back in before the changes take effect.
    Also, if you decide to edit the files by hand, I'd suggest just renaming NSServices by adding an "x" to the front or something, rather than deleting the item completely. That makes the changes easier to reverse.
    charlie

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How can we remove items from the VF04 list?

    We have a long list of items in VF04 that, for various reasons (some process related, some due to errors), are not to be billed. We have looked at applying filters to the list but there is nothing really suitable to hide these individual documents e.g. we could filter out some dates where none of the items on that date are to be billed but other dates have a mix of items we want to bill and others we don't.
    I have done a search of this forum but didn't find a previous topic with a quick and simple method to remove items from the list .
    Is there a method, other than billing them or sorting each issue individually, to permanently remove individual documents from the VF04 list?
    Thanks in advance for any help.
    David

    Hi,
    David,
    Download a list of Pending delivers doc form VF04.
    Paste the list in T.Code : VL09 (Delivery reversal) and reverse the delivery.
    Then go to T.Code: VL06G Select the list of deliveries that has been reversed, select/delete all un- wanted deliveries.
    This way you can remove all unwanted pending deliveries forn Billing due list (VF04).
    Thanks & Regards,
    R.Janakiraman

  • Can't remove items from the dock

    Hey,
    i'm having this problem for quite some time, and it's starting to annoy me.
    When i try to remove something from my dock, lets say safari, for example, the dock auto reloads and the safari icon appears again. I tried to remove it dragging it out of the dock, using the "Remove from dock" right-click option and dragging it to the trash. It always reloads the dock automatically.
    I joke around with the dock appearance a while back, but dont know what i did wrong to create this issue.
    Anyone knows what's going on?
    Thanks in advance
    Sergio

    I dont think so, but i'll sure look into that. I'll post back if i find anything. Thanks
    Edit: After looking for some dock locking programs, i noticed that this programs lock the dock, not allowing to insert new items on it. As i can insert new things there i assume its not one. I've also searched for some programs like transparentDock and such, but nothing showed up so i guess thats not the problem.
    Message was edited by: Nearra

  • Can you remove items from the toolbar when opening a pdf in a browser?

    I know you can turn off the toolbar with open parameters, but we would like to only display the zoom controls on the toolbar.  Can I do this with an FDF file or some other way?

    Hi,
    You mentioned that "JavaScript in the PDF can hide toolbar buttons."
    According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
    Rob

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • How can I add and remove items from the bookmarks toolbar?

    I want to remove items from the bookmarks toolbar and add ones that I use on a regular basis. How can I do this?

    See:
    *https://developer.mozilla.org/en/Chrome
    *http://en.wikipedia.org/wiki/User_interface_chrome#User_interface_and_interaction_design

  • How do you remove items from the assets panel that are duplicated?

    How do you remove items from the assets panel that are duplicated?

    If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
    It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear.

  • How do you remove items from the start up disc

    How do you remove items from the start up disc?

    Freeing Up Space on The Hard Drive
    You can remove data from your Home folder except for the /Home/Library/ folder.
    Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
    Also see Freeing space on your Mac OS X startup disk.

  • How can i remove something from the favourite in finder?

    how can i remove something from the favourite in finder?

    previously you solved my problem but this time my preferneces>side bar is not displaying the item which i want to remove

  • How can I remove icons from the Finder sidebar?  Were transferred when I set up laptop from my desktop computer.  Tried dragging off but that didn't work.

    How can I remove icons from the Finder sidebar?  Transferred info from my Mac Pro desktop computer (using target mode) and there were folder icons on the Mac Pro Finder sidebar that are now on the MacBook Finder sidebar, even though these folders do not exist on the MacBook.  Tried to drag them off, which is the usual way to get rid of folders that the user adds to the sidebar (as opposed to those that can be added via the Customize Toolbar dropdown menu) but was unsuccessful.  I then unchecked all of the Customize Toolbar menu items and the folder icons still remained.  What else can I do?

    Did you hold the Command (Apple) key while dragging them off the sidebar? That usually makes them go *poof*.

  • How do I remove items from the cloud without losing them permanently?

    My icloud storage is almost full. How do I remove items from the cloud and not lose them?

    What items?
    Purchased music, movies, TV shows, apps, and books do not use up your iCloud storage.
    See the link below for how to reduce the amount of storage you're using:
    http://support.apple.com/kb/HT4847

  • How do I remove items from the dock?

    How do I remove items from the dock ?

    Single click and then drag it to the desktop. It will dissapear in a puff of smoke. You also may benefit by bookmarking and using:
    Find Out How Video tutorials

  • Wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    I wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    Try holding down the Command key and dragging the file well off the sidebar.
    Hope this helps.

Maybe you are looking for