SelectOneMenu disables itself after facesMessage

Hello All,
I have been working this for a while now and not really sure how to get around it. I have a SelectOneMenu populated with selectItems inside a form. The required attribute is set to true and the requiredMessage attribute is set to "Please select a position". The form elements (including the selectOneMenu) is nested inside a rich:modalPanel.
What happens is that since the selectOneMenu is required the messages fire--the expected behavior BUT the selectOneMenu for some reason also disables itself. Now, I am thinking that this "disabled" quality of the selectOneMenu has something to do with the component loosing it value and/or selectItems values--not sure though. The applicable code is listed below:
<rich:modalPanel id="groupsAddPanel" width="500" height="450" style="background-color: #EEEECB;" 
binding="# {membersHandler.addNewMembers}">
                <f:facet name="header">
                    <h:panelGroup>
                        <h:outputText id="groupsAddPanelHeaderText"
                                      value="#{membersHandler.addMembersHeaderLabel}"/>
                    </h:panelGroup>
                </f:facet>
                <f:facet name="controls">
                    <h:panelGroup>
                        <h:graphicImage value="/images/close.png"
                                        style="cursor:pointer" id="hidelinkAddGroups"/>
                        <rich:componentControl for="groupsAddPanel"
                    attachTo="hidelinkAddGroups"
                                                operation="hide" event="onclick"/>
                    </h:panelGroup>
                </f:facet>                          
                <a4j:region id="groupsAddRegion">
                    <a4j:form id="groupsAddForm" ajaxSubmit="true" rendered="true" status="groupAddStatusId" >
                        <h:panelGroup id="groupsAddPanelGroup" rendered="true" >
                            <table cellpadding="3" cellspacing="0" border="0" id="addGroupsTable"
                                   style="background-color: #EEEECB;" >
                                <tr>
                                    <td class="groupsTdLables">
                                        <h:outputText id="posLblGroupsAddForm" value="Position: "/>
                                    </td>
                                    <td colspan="3" class="addGroupsInputs">
                                        <h:selectOneMenu id="positionDropDown"                                                         
                                                         valueChangeListener="#{membersHandler.positionSelected}"
required="true"
                                                         requiredMessage=" Please select a position!"
                                                         value="#{membersHandler.dirtyMembers.srpMemLuId}"
                                                         binding="#{membersHandler.membPosHtmlSelectOneMenu}">
                                            <f:selectItems value="#{membersHandler.generalSelectItem}"
                                                           binding="#{membersHandler.membPosSelectItems}"/>
                                            <a4j:support event="onchange" reRender="positionDropDown"/>
                                        </h:selectOneMenu>                                       
                                    </td>
                                </tr>
                            </table>                  
                            <h:panelGrid id="groupsAddPanelButtonsPanelGrid" columns="3" style="text-align:center; width:100%;">
                                <a4j:commandButton id="saveLinkAddGroupsPanel"  value="#{srpBundle.hlinkSave}" 
                                                   styleClass="buttons01" status="groupAddStatusId"
                                                   rendered="true" action="#{membersHandler.saveNewRow}"
                                                   onclick="this.value='Processing...'; this.disabled=true;"
                                                   oncomplete="windowclose();">
                                    <a4j:support event="onclick" reRender="addGroupsTable"/>
                                </a4j:commandButton>
                                <rich:spacer id="blankspaceId" width="200px;" />
                                <a4j:commandButton id="cancelLinkAddGroupsPanel"  value="#{srpBundle.hlinkCancel}"
                                                   styleClass="buttons01" status="groupAddStatusId"
                                                   rendered="true" reRender="facStudRotcForm" immediate="true">
                                    <rich:componentControl id="richCmptCntrlCancelAddGroupsPanel" for="groupsAddPanel"                          attachTo="cancelLinkAddGroupsPanel"      
                    operation="hide" event="onclick"/>
                                </a4j:commandButton>
                            </h:panelGrid>
                        </h:panelGroup>
                    </a4j:form>
                    <a4j:status id="groupAddStatusId" startText="One Moment Please..."
               stopText="Ready!" style="text-align: center; font-size: 14px; font-weight: bold;"/>
                </a4j:region>
                <rich:messages id="richMessagesBaseForm2"
                               binding="#{membersHandler.htmlRichMessages}"
                               style="text-align: left"
                               passedLabel="Data is allowed to be stored."
                               layout="list">
                    <f:facet id="richMessagesBaseFormFacetHeader" name="header">
                        <h:outputText id="baseFormOutPutText" value="Entered Data Status:"></h:outputText>
                    </f:facet>
                    <f:facet  id="richMessagesBaseFormFacetPassed" name="passedMarker">
                        <h:graphicImage id="baseFormImagePassed" value="/images/passed.gif"/>
                    </f:facet>
                    <f:facet  id="richMessagesBaseFormFacetError" name="errorMarker">
                        <h:graphicImage id="baseFormImageError" value="/images/error.gif"/>
                    </f:facet>
                </rich:messages>
</rich:modalPanel>I didn't see a need to post the valueChangeListern method because according to my debugger I never get there. The require=true attribute
doesn't let the valueChangeListerner fire.
Any ideas?

place your select one menu in Ajax enable ajaxouputpanel and assign id to that component and re render the ajaxoutputpanel i hope it will resolve your problem.
AjaxOutputPanel
like the code.
<a4j:outputPanel layout="block" id="positionDropDown">
<h:selectOneMenu  valueChangeListener="#{membersHandler.positionSelected}"
required="true"
                                                         requiredMessage=" Please select a position!"
                                                         value="#{membersHandler.dirtyMembers.srpMemLuId}"
                                                         binding="#{membersHandler.membPosHtmlSelectOneMenu}">
                                            <f:selectItems value="#{membersHandler.generalSelectItem}"
                                                           binding="#{membersHandler.membPosSelectItems}"/>
                                            <a4j:support event="onchange" reRender="positionDropDown"/>
                                        </h:selectOneMenu>
</a4j:outputPanel>Edited by: [email protected] on Sep 16, 2008 11:55 PM

Similar Messages

  • Can a pdf be made to disable itself after 12 months? So the user has to download a current pdf ?

    Can a pdf be made to disable itself after 12 months? I am interested in sending a pdf formatted price list to a customer, but after 12 months I want the pricelist pdf to disable itself, so the individual has to download a current version of the price list.  Is this possible?

    May be possible with following server product:
    http://www.adobe.com/products/livecycle/rightsmanagement/

  • BT 900 Dongle works but then disables itself after...

    I am running a BT 802.11ac 900 Dongle on my Windows 10 PC, which works but after a while it seems to disable itself and I have to unplug it and plug it back in, so it re-enables itself and works again.
    I've checked all the settings I can think of and disabled the ablility for the computer to power off the USB save power - although this doesn't seem to be the issue.
    Anyone else had this problem on Windows 10 or any other OS?

    Hi pmillar1970,
    Welcome to the forum and thanks for posting.  I'm sorry to read about the problems with your dongle. Have you looked at the FAQ's on this link to see if they help with this issues 11ac Dual-Band Wi-Fi Dongle 900 there is also contact details for the dongle helpdesk if the FAQ's don't help.
    Neil
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Is it possible for iPad to disable itself after one wrong passcode attempt?

    This has never happened before but several hours ago I picked up my iPad and mistakingly put in the wrong passcode and my iPad was immediately disabled! I thought this only happened after several wrong attempts.  Please help!

    That immediately came to mind but my sister is the only one at home with me and she denies touching it. Just wondered if someone else out there has encountered the same glitch. Thank you for responding!!!!

  • HT1766 my ipad has disabled after asking for a passcode which has never been put on this ipad and now disabled itself ???

    my ipad has disabled itself after asking for a passcode after updating ios7 now tried to restore it but didnt work

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Repeat one disables itself

    Hi, Repeat one functionality disables itself after I change the song. It works fine for one song, but does not persist for the next song. For example, when I turn it on while listening to song X, song X keeps repeating, which is fine. But then, if I switch to song Y (either through forward, rewind, or select through playlist), repeat one does not apply to song Y, and I have to enable it again to get it working for song Y. The issue seems specific to Android, as repeat one works fine on my Spotify Desktop. Your deviceGalaxy S4. What type of account do you have?Premium Did you manually install an older version before installing the latest version from the Play Store?No My mobile Spotify version3.0.0.1124

    Hello 
    Sorry for the late reply.
    I am not the developer who added it into the mobile app, but this behavior is intended.
    Let's say you are playing a song from a playlist and you want to listen to it over and over again.
    You then open the now playing view and tap on repeat until it goes to repeat one.
    Since you want to keep listening to that song you close out of the Spotify app and carry on whatever else you are doing.
    If you then decide to play another song or continue on with the playlist, the repeat one option is turned off.
    I think this is intended because usually you don't just want Spotify to repeat one every song you tap on.
    If it so happens that you want a certain song on repeat one, then you would just go to the now playing screen and turn repeat one on.
    It would be a hassle to leave repeat one on because when you want to play a different song or continue playing the rest of the playlist, you would have to go to the now playing screen EVERY SINGLE TIME and turn off repeat one so you can continue listening without the app repeating the next song that you chose, over and over again.
    The desktop app keeps the repeat one on because the button is always in view and easy to turn on and off. It's not so easy in the mobile apps.
    Hopefully my thoughts are helpfult.

  • How to properly disable a button after click or can an event disable itself?

    Can I disable  MouseEvent.CLICK after I clicked it?
    I am relatively new to coding and it seems to me as a mistake that an event will disable itself?
    Is it ok or is it prone to some mistakes?
    mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.CLICK, onClick_Products_btn);
              function onClick_Products_btn(event:MouseEvent) :void {
                        gotoAndPlay("products");
                        mainNav_buttonsGroup_mc.Products_btn_mc.removeEventListener(MouseEvent.CLICK, onClick_Products_btn);
      Products_btn_timeLine.play();
    The idea is that I want to disable a button after it is clicked.

    The approach will work.  The event is not disabling itself.  The event is the occurence of the CLICK interaction.  The event listener is designated to detect that happening.  The event handler function for that listener is disabling the event listener.

  • My ipod disabled itself for 23 million minutes. How can I fix it if I don't have itunes on my computer?

    My ipod disabled itself for 23 million minutes. How can I fix it if I don't have itunes on my computer?

    A computer with iTunes is not required
    If you have Find My iPhone enabled, you can use Remote Wipe to erase the contents of your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode after the device has been erased.
    You need the iPod and iPad conencted to the interned and FindMyiPod turned on on the iPod an the iPad need to have the FindMyiPhone app installed. That now requires iOS 7 on the device.
    You can also wipe by on a computer/s browser, going to icloud.com>FindMyiPhone

  • Itunes keeps reopens by itself after i close it on xp

    Has anyone out there been able to figure out why and how to stop itunes from reopening itself after you close it on windows XP. This is an xp ? so please don't post mac os answers. From what I read and heard from support, no-one at apple knows why this is happening. I used itunes to legaly buy and download music. I do own an ipod and therefore don't connect one to my computer. I have a feeling it has to do with the ipodservice and or the itunes helper service that seem to ignore the fact that I have disabled them in services.msc. But nothing works. I will listen to some music via itunes, download some from the store, etc.. When I am done I will try file/exit, or closing via the x in the top right corner. Then suddenly the software reopens... I dont want to have to stop using itunes, but I can not get a fix for this I may just have to switch over to rhapsody via windows media player. Appkle tech support said they couldnt help me and didnt know why it works. Thats sad cause I spend a lot of money on intunes and if they dont care about me, then i can only assume they will treat me the same if I bought one of thier computers. Looks like they lose a customer here..... Any insights would much be appreciated. Links from previous post anything that might help me fix this issue that apple says too bad your a pc user.
    Message was edited by: KokoAtae
    Message was edited by: KokoAtae

    I'm having the exact same problem in Windows Vista. It has only happened since the last update to iTunes; it didn't happen before that. It happens ever five minute or so and is making me insane. Of course, I can't delete iTunes, since that's where my iPod library resides. Somebody MUST do something about this. Can anyone help?

  • ITunes reopens itself after closing

    Greetings,
    Since version 5 I and many others whom I know cannot close iTunes. It closes then immediately re-opens itself. Even using Task Manager to close it, it simply re-opens itself again, and in the end the only way to close iTunes is to re-boot the computer.
    I have sent Apple about 50 emails with regard to this problem, as have many other people I know, but none of us has ever received a reply.
    I believe this is a common problem.
    I have managed to ascertain that the first opening of iTunes uses the path C:\Programs\iTunes, but that all automatic re-openings thereafter carry a suffix: C:\Programs\iTunes\ -embedding.
    I have disabled all my security software and the problem persists.
    Please does anybody know how to resolve this problem?
    Thank you,
    nippauls

    PROBLEM RESOLVED!
    Here is what I did and it has fixed the issue of iTunes continually re-opening itself after closing with reference to DCOM and embedding.
    I disabled DrWatson by editing the following registry key from 1 to 0:
    HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\AeDebug = 0
    I disabled DCOM by editing the following registry key from Y to N:
    HKLM\SOFTWARE\Microsoft\OLE\EnableDCOM = N
    Then I restarted the computer.
    Then, using Control Panel, I removed iTunes and restarted.
    Then I went to C:\Programs and deleted EVERY folder relating to iTunes and iPod. If a folder refuses to be deleted, open Task Manager and terminate the relevant iPod process then it will be possible to delete the folder.
    I then cleared my Prefetch folder, temp folder, and then recycle bin.
    I restarted the computer, and re-installed iTunes.
    PROBLEM RESOLVED
    Hope this helps other users with similar problems.
    nippauls

  • Why would iPad mini disable itself when correct passcode is entered?

    My daughter's iPad mini disabled itself even though an incorrect password was never entered? It started with a 15 minute lock out followed by 30. At some point it went to a 60 minute lockout and after a half hour or so reverted back to 60 minutes for no reason. I finally got my hands on it and after the 60 minute clock expired I correctly entered the first three digits of the passcode and the iPad promptly disabled itself for good. This makes no sense. I'm aware of the restore drill.  What I want to know is this: Why did this happen and is there some sort of Hail Mary play that will prevent a complete restore.

    Did you reboot the router?
    If that doesn't work, test it... will it connect to a public router (wifi) like in a bookstore or public area?  If it works, then the problem is with your router.

  • SURETYPE DISABLES ITSELF!! 8110

    Tried posting this on another blackberry forum to no avail:
    I've discovered my SureType disappears only after typing emails! When writing texts its there and for the initial email its there, but once its sent my SureType goes away even though under language input options the box is still checked!
    More background:
    I have the latest OS version and have verified my suretype box is checked in the application loader on my blackberry desktop assistant.
    Sometimes when typing messages (including in messenger) or e-mails (NOT when in the browser or entering passowrds) my suretype suddenly disables! No warning at all, I've checked my options- language settings millions of times and turned my phone on and off, connected it to my pc over and over, but the problem still occurs
    The only solution I've found is to "fake out" my blackberry by going to options- language and changing it to English (rather than English-US) then the Input langauge to English US Multitype from simply English US THEN ensuring the predictive text box is checked under input options THEN I have to return my language settings all back to English US and resave it (YES I return my input language back FROM English US multi to simply English US)-
    My solutions only works for 5 e-mails or texts before the suretype disables itself AGAIN despite all the language settings saying otherwise...what's wrong with my phone? It's only a month old- This is so frustrating especially when it happens unexpectedly and im in a rush to type-
    SO long story short even though all indications point to suretype being enabled and functioning-I am at the will of my blackberry as to whether it actually works out-

    Hi there ,  I looked into the different ways you can use your Notebook to see if the function of putting the HP ENVY x360 on its side in Laptop Mode was possible.I found a document called HP ENVY x360 Convertible PC - Maintenance and Service Guide. If you take a look under External component identification on page 7, you will see that it gives you three modes that this particular model can be used in. I also found that the tilt sensors and dock are not going to allow you to use this particular Notebook in the function that you would like because it is a model that allows you to have tablet capabilities.  I want to thank you for visiting the HP Support Forums.  Have a great day!

  • Watched ipad flash and disable itself

    after restoring my ipad yesterday, i plugged it in this morning to charge
    after a few minutes i was in the kitchen and my eyes were drawn to it when the light flashed on by itself. it was on the lock screen and started flashing like repeatedly getting the incorret passcode time after time after time
    it then disabled itself
    what the..?

    um... i have worked out what happenned,
    bluetooth keyboard was in bag (it doesn't have an off buttom)
    and i must have moved the bag so that something was hitting the buttons..
    oops
    fyi

  • Is there a way to create a user account that "expires", or self deletes itself after a set amount of time?

    I am hoping to find a way to create an Admin account for our parent body that can be used for items at home, "adding printers, software, wireless settings, etc...), but have that account either "expire" or self delete itself after say 72 hours?
    Thoughts?
    Jesse

    Will they be needing to keep files saved for a while?  I'm guessing no, since you're ok with it auto-deleting after a short while.
    You could just use the guest user:  http://support.apple.com/kb/PH11321
    But I'm not aware of any way that you could setup an account to expire.

  • PLZ help me!!!! N91 switching off itself after few...

    my nokia N91 4 gb got disconnected during software update which cause a severe damage.i take it to a software repairer who flash it but then he replied me that the IMEI is corrupted.then i took it to some one else who installed the software eventually by flashing 2.20 008,the latest version in my N91(Rm 43) but it is switching off itself after few hours.it sometime take 1 hour, some time half hour and some time 5 hours then switch off itself.it turns on again when i turn it on and works for same period and then again switch off.could u plz help me as i am in great trouble now.what to do now to repair it.when i went to the software repairer who repaired it.he replied that its the hardware fault.i was astonished to hear this as there was no problem before repairing the software.plzzzzzzzzzzzzzzzzzzzz help.

    hello,
    i am having the exact same problem. however i do nott know how it occured. the phone continues to shutdown by itself every few hours. i don't know what too  do
    pls help
    thanks
    peter

Maybe you are looking for

  • Linksys and maxpower

    Hi, I bought a linksys WRT54G to make a wireless connection from my G5 to my G4 quicksilver / Mac OSX10.4.11 computer. The Linksys router is currently connected to my G5. Since the linksys PCI adapters are not compatible with Apple , I wanted to buy

  • How do I get a 100 V 100 Hz signal into a NI PCI-6111 analog input?

    I have a 100 volt 100 Hz signal that I want to bring in on NI PCI-6111 analog input (+/- 5V input). Is there some small off the shelf transformer or other type of signal conditioning I should use? Basically I just need to time stamp other analog inpu

  • How do I make the audio files on my site download?

    Hi In my site there are links to some audio files. When click the links in chrome or firefox, the audio files start playing straight away. In opera the files download. Internet explorer opens the files in windows media player. How can I make it so th

  • Not too tech savy with tablets but need help

    My Nook HD+ uses Adobe Air, tablet says version is 3.3.  One of my games says it needs updated version of Adobe Air.  Go to Google play to d/l and it does and tries to install but I get an error message on tablet saying it "Already Exists."   Tried u

  • ComboBoxControl - Reposting question 2nd time

    I am having problems with displaying items on the InfoSwing component ComboBoxControl in JDeveloper3.1. The combo box will allow a user to select a fixed list of values for a database column. I created the combo box and set the dataItemUsageMode prop