How can i disable an Action listener temporary?

hi folks,
I have a GUI with many Jcomboxes. Each one of them has an actionlistener.
The idea was: when one of those comboboxes is selected, then the selected value will appear on ALL the comboboxes (by using setSelectedIndex(int index)).
The problem is when i select a value on ONE of those comboboxes and set it on the others, the actionListener thinks that i selcted a value on the other comboboxes and starts setting the values again... I other words if i select one combobox i obtain an endless loop...
Is it possible to disable the action listener temporary when setting the selectd values on the other comboboxes?

Just use removeActionListener and then addActionListener
Noah

Similar Messages

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • How can I disable a button ?

    Hi!
    How can I disable the a button ?
    There is a if statement. If it returns a false the button must be disabled.
    Regards
    sas
    Edited by: erdem sas on Jan 15, 2008 3:06 PM
    Edited by: erdem sas on Jan 15, 2008 3:16 PM

    Do it thru its action:
    //Deactivate a button disabling its action
    //You can see it but clicking it does nothing
    wdGetACTION_NAMEAction().setEnabled(false);
    //Get it's funcionality back
    wdGetACTION_NAMEAction().setEnabled(true);
    Or you could hide it using an attribute of type WDVisibility binded to its visible property.
    //Hide it
    wdContext.currentContextElement.setATTRIBUTE(WDVisibility.NONE);
    //and Show it
    wdContext.currentContextElement.setATTRIBUTE(WDVisibility.VISIBLE);
    Regards.
    Julio Herrera.

  • How can we disable " XDB Requires a username and password"?

    Hello,
    I've just performed an Apex 4 installation on top of a DB 11.2.0.2.
    All is fine.
    No problem fine with FF, IE and Safari, but with Chrome I always have a pop up saying " The server XXXX: port at XDB requires a username and password".
    How can I disable that, or fix it definitively?
    Thanks
    Fred

    Sure.
    On my system Anonymous and XDB account were already unlocked and both used the same password.
    I simply executed the PL/SQL block that you can find here: http://www.apexexplorer.com/wp-content/uploads/2010/11/XDB-Password-Issue.pdf
    I bounced the listener.
    Hope that help
    Regards,
    Fred

  • How can I disable the "this PDF document might not be displayed correctly" notification?

    Almost all PDF files produce the "this PDF document might not be displayed correctly" message when viewed with the built-in PDF viewer.
    This message does not convey useful information. It appears on almost all PDF files (even though they usually work correctly after all); it sometimes fails to appear even on files that don't work (so it does not accurately predict whether a given file will work); when a file doesn't work, there is no way to make it work short of using an external viewer (so the error I'm being warned about is not something I can fix); and it demands a user action to dismiss it EVERY TIME it appears (so it places a disproportionate demand on my attention). How can I disable it?
    Please note that I am not looking for instructions on how to disable the built-in PDF viewer. I just want to turn off the warning message.

    The only way to stop this message is to disable the built-in PDF Viewer and use another viewer.<br />
    On Linux you only have an older version of the Adobe Reader available, so you may have to open the PDF files in an external viewer like evince.
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu if you want to display PDF documents in Firefox with another application (i.e. not the built-in PDF Viewer).
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
    The latest stable version of the PDF Viewer (pdfjs) extension:
    *PDF Viewer: https://addons.mozilla.org/firefox/addon/pdfjs/
    Latest development version of the PDF Viewer (pdfjs) extension:
    *http://mozilla.github.io/pdf.js/extensions/firefox/pdf.js.xpi

  • How can i disable the firewall in windows

    how can i disable the firewall in windows???

    Go to the start menu, select run and type cmd Once the command prompt appears type netstat -a and see if it shows your computer as listening to the port for Limewire.
    60GB iPod w/ video | PowerBook G4: 1.67, 1.5GRAM, 64VRAM, 80GB HD, SuperDrive |   Mac OS X (10.4.5)   Nothing is as simple as we hope it will be.

  • How can i disable mesh?

    how can i disable 1552E mesh over cli. i m trying to upload ios and it s always cutting the connection.
    Sep  1 10:17:48.167: %MESH-3-TIMER_EXPIRED: Mesh Lwapp join timer expired
    Sep  1 10:17:48.167: %MESH-3-TIMER_EXPIRED: Mesh Lwapp join failed expired
    Sep  1 10:17:48.167: %MESH-6-LINK_UPDOWN: Mesh station f029.29c2.9a1c link Down
    Sep  1 10:18:38.671: %MESH-6-CAPWAP_RESTART: Mesh Capwap re-started

    hi Scott,
    i need to change image to autonomous and i m trying everything. i m trying to find wayout the cisco 1552e hell... problem is 1552e doesn t use ftp, tftp, scp or other protocols. i installed the wireshark to server notebook and listen the network. other machines, pc notebook etc. connecting to server ftp, tftp ,scp and all other ports perfectly just the freak 1552e doesn t. 1552e ping to server also server ping to 1552e. it totaly normal but when i try :
    archive download-sw /overwrite /reload ftp://sturk:[email protected]/c1520-k9w7-tar.152-4.JA1.tar
    archive download-sw /overwrite /reload tftp://10.0.0.3/c1520-k9w7-tar.152-.JA1.tar
    here is the freak error :
    %Error opening tftp://10.0.0.3/c1520-k9w7-tar.152-.JA1.tar (Timed out)
    Download image failed, notify controller!!! From:7.4.1.37 to 0.0.0.0, FailureCode:15
    archive download: takes 38 seconds
    what s wrong i don t know and i need the resolve the problem asap. i didn t fight like this with cisco before.
    i use the all proceses all other 1552e s. all the 1552e broke or i m missing very simple point!
    anyway thanks again...

  • How can I disable the new voice feature in iMessage?

    iMessage is great and I use it a lot, but I hate the new voice feature. I don't want anyone to be able to send me a voice message. I think it's extremely pushy. If someone wants to talk to me, he should give me a call. Then I can decide whether I answer the call or not. How can I disable this without completly disabling iMessage?

    I'm pretty sure there's no way to prevent this, just like there's no way to prevent a text message or picture/video message.  If you don't want to listen to it, delete it, and text them back and tell them you don't like voice messages and they need to call you and leave a voicemail.

  • How can I disable Control+PageUp/Control+PageDown Tab switch?

    How can I disable Control+PageUp/Control+PageDown Tab switch? I have found various addons to provide additional key combinations for this action, but no option to disable that (these key combinations are mapped on my X server to serve as Home/Pos1 and End, and I would like to have that functionality within firefox as well).

    Hi Guigs2, I already tried that (and a whole bunch of other key costumization/mapping plugins), and it does not help. It helps to add other shotcuts for the tab switching, but does not give an option to eliminate the existing key combination. Thank you anyways.

  • How can I disable Firefox from automatically opening on system startup on my Mac - unchecking the "open at login" does not work?

    We have Firefox 10.o on our Macbook Pro OS X 10.5.8. I prefer using Firefox as my browser but my husband prefers Safari for now because of a long history of bookmarks and saved information he doesn't have time to re-do. He is tired of Firefox automatically opening when we start up the laptop, and even when we uncheck the "open at login" it still opens at login every time. He is about to uninstall it because of this. How can we disable? It does NOT show up in our account on the Mac OS as an application that starts at login, so we can't disable it there.

    For those of you running Windows, I found this on another site. (Unfortunately, not before getting totally disgusted and switching to chrome.)
    1. click start (or the windows flag button at the bottom left) 2. in the "search programs and files" or the RUN dialog box, enter "msconfig.exe" or "msconfig". 3. That should open the system configuration program. 4. click the "Startup" tab at the top of the opened program. 5. Under the "startup item" column, look for Mozilla firefox. 6. uncheck that one. 7. Click OK or apply. 8. click "exit without restart". 9. you're good to go.

  • How can I disable imessage from old phone?

    how can I disable imessage from old phone number / iphone I no longer have?

    iMesssage to old phone
    If you move to another phone and forget to turn off iMessage then read “if you no longer have the device in http://support.apple.com/kb/HT5661  If you still cannot resolve it call Apple http://support.apple.com/kb/HE57
    To deactivate iMessage http://support.apple.com/kb/ts5185
    Read http://m.samsung.com/us/support/SupportOwnersFAQPopup.do?faq_id=FAQ00053450&fm_s eq=62995

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

  • The windows of the Windows bar are already a form of tabs, so I don't need them in Firefox. How can I disable them completely from Firefox 23?

    RE: TABS ARE WINDOWS!
    The Windows bar already functions as a tab bar. Those tabs are called "windows." So, I find Firefox tab windows superfluous. How can I disable them completely from Firefox 23? I don't need what is essentially TWO windows bars covering up the entire width of my widescreen monitor's image! I already have a Windows bar at the bottom of my screen and, if I really wanted to, I could change ITS position to the top of the screen, so that it would LOOK like the Firefox tab windows bar. Firefox TABS are, essentially, a superfluous SECOND WINDOWS BAR.
    Here are my reasons for why I'd rather use Mozilla's Firefox, than Microsoft's Internet Explorer or Google's Chrome. I love and admire Firefox for Mozilla's intent on good security, for Firefox's Personas add-on, and for Firefox's free use of the Ad-Block add-on which, as you know, has the distinct virtue of reducing screen clutter--the last of which is my motive for wanting to get rid of the SUPERFLUOUS Firefox tabs "windows" bar. I am dreadfully sick of companies forcing miscellaneous bars (mostly representing marketing campaigns trying to sell me something) into my browser (and down my throat) every time I download something. (In case you haven't guessed, I am deliberately referring to your Firefox tabs bar as a "Firefox tabs 'windows' bar," because TABS are WINDOWS!)

    Let me clarify even more. The Firefox add-on you mention does not remove "tabs" windows. It only HIDES the "tabs" bar when there is only one "tab" in that window. It DOES NOT end "tabs." It does not turn "tabs" off.
    I know this, because, even with the add-on you recommend, the "tabs" bar often re-appears when I open a link, which--for some unknown reason--Firefox defaults to opening in a second "tab" within the same window, rather than putting it in a new Windows bar window. This, of course, disregards what I want to happen.
    I want to use my Windows bar to control my windows. I do not want my Firefox browser controlling my windows--which it calls "tabs." Can you tell me how to shut off "tabs?"

  • How can I assign a action to a button of the many scripts in the script file.

    How can I assign one action of many actions in a script file.
    I have many actions in a script file and I want to run one of them by clicking a button on the panel. However, loading the script I can not isolate the action that interests me.

    Hello,
    Try System Preferences>Energy Saver>Options tab, uncheck Allow power button to sleep computer.
    Some possible other options...
    Control-Eject
    The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.
    Control-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.
    Control-Option-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.
    Command-Option-Eject
    Puts the computer to sleep.
    Shift-Control-Eject
    Puts all displays to sleep.
    Power button (if the computer is not responding)
    Press and hold the power button on the computer for six seconds to shut down the computer.
    http://support.apple.com/kb/ht2448

  • HT204053 Hello I found someone using My Apple ID for face time how can I disable it

    Hello I found someone using My Apple ID for face time how can I disable it

    Welcome to the Apple community.
    Change your password..

Maybe you are looking for