Commandbutton onclick and actionlistener happen at same time

I started a thread previously with a similar issue, but the title of that thread really doesn't describe the current problem. Sorry for double posting, but I would delete that thread if I could.
I have a command button as:
<h:commandButton id="saveCloseFoil" type="submit"
onclick="javascript:saveText();"
action="#{Item.saveOptionAction}"
value="#{propertiesBundle.saveCloseSubmitLabel}"
actionListener="#{Item.setFoilTextToBean}" />
The saveText() javascript function copies the text from a text editor to a field defined as:
<h:inputHidden id="hiddenTextField" value="" />
The actionlistener should take the value from the hidden field, and put it in the backing bean. The Action then saves that value in its correct place in the database.
The problem is that the onclick and actionlistener are firing at the exact same time(i am verifying this by using the firefox javascript debugger breakpoints for the javascript and JDeveloper breakpoints for the actionlistener. Both breakpoints stop at the same time.)
The strange thing is that in another place in our applicate we have an almost identical button:
<h:commandButton tabindex="3" type="submit" id="submit"
onclick="javascript:setBrowserSettings();"
action="#{Login.loginAction}"
actionListener="#{Login.setBrowserOSSettings}"
value="#{propertiesBundle.loginLabel}">
</h:commandButton>
in which the onclick is run first, then the actionlistener, then the action. I verified this using the exact same method as with the button I am working on now.

I use both IE6 and Firefox. I mentioned FF because I am unable to debug the problem as accurately in IE6 due to the very limited javascript debugging available for it.
I also have tried the return true; in the onclick, and tried it again, with no change.

Similar Messages

  • HELP please! :) My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same!

    My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same! What can I do?? and is new, I buy it on march!
    This is a image of the ipod already restore, and everytime looks like that!

    If restoring the iPod to factory defaults/new iPod dow not solve the problem you likely have a hardware problem.  In that case either make an appointment at the Genius Bar of an Apple store or call AppleCare.  If defective, Apple will replace your iPod at no cost.

  • Monitor and capture at the same time?

    Is it possible to view/monitor a video (live from a quickcam) and capture at the same time?
    I looked at the solution here:
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
    And found "Video Capture Utility with Monitoring" sample program. However it only allows capture! There is no live display of video viewing while the capture is happening.

    Actually, the sample program works once I uncheck Audio.
    I do not have any Audio input device, so I guess that is causing the problem.

  • Issues when Insert and Analyze at the same time

    Hi All,
    We have a weekend job that used to take 12-15 hours usually and insert around 8 millions of records to a table from external table. Last weekend the same load took 60 hours and it move to Monday and there are some business impact.
    While we investigate the same issue we identified that there is one more weekend analyze job for all the tables and indexes and took around almost same time and we noticed that the table we inserted the 8 million records alone it took around 15 hours. This table now has around 91 Core records.
    We need to identify why this jobs taken long time as almost 4 times compare to the normal scenario.
    I would like to know what exactly happen when Analyze and insert happened to the table at the same time. And What all issues can occur because this.
    Best Regards,
    Shijo

    Ok,
    It is unclear what version you are using as you forgot to post that.
    Furthermore it is unclear what 'Analyze' is, as analyze statistics was already deprecated in 9i.
    Secondly, most people is this forum speak English, and they are accustomed international units only.
    Sybrand Bakker
    Senior Oracle DBA

  • I cannot use data and voice at the same time.

    I cannot use data and voice at the same time.
    I am on Wifi (connected) and at the same time I am on a voice call. when I switch to my RSS feed reader it does not sync it comes out with a message cannot connect to internet, I thought it is a problem with the feed reader application, IE 10 behaves the same I cannot browse when I am on a voice call.
    This is a very basic issue, am I missing something? Please help.
    My Model is lumia 820 with the latest portico update.
    TIA
    Sandeep

    I am aware that packet data via EDGE and voice cannot happen at the same time, surprisingly when I am on voice call I cannot connect to internet via Wifi too

  • My iPad won't charge after plugging into my computer and after holding down the power and home button at same time for 10 seconds- Can anybody help? Has IOS7.0 but the most up-to-date version

    My iPad won't charge after plugging into my computer and after holding down the power and home button at same time for 10 seconds… Can anybody help? Has IOS7.0 but not the most up-to-date version

    It's just the battery sign - nothing else. I've tried to reboot by holding down both power and home key for 10+ seconds, waiting for the apple logo - but nothing happens. It's plugged into the imac at the moment. I tried to recharge it overnight using the normal charger - but no luck. It went dead during a Skype call with a friend - even though it was powered into the mains - albeit at a low battery level at the time

  • When i hold down command and r at the same time after restarting it comes up with a

    When i hold down command and r at the same time after restarting it comes up with a black screen and a lock symbol and a field bellow where you would input a password, i have tried ALL of my possible passwords including my password i use for the mac and it stil will not work! all that happens is the text i put in bellow erases itself after hiting enter or clicking the arrow.

    I've tried my apple ID password and that doesn't work either . I don't recall seting a password for an encrypted disk either :/ if it was for an encrypted disk, would it be in keychain anywhere? if so how can i find it?
    Thanks!

  • Datasocket help, want to use the same(one .ocx only) in VB and HTML at the same time

    I want to create one ActiveX control that can be use in VB and HTML. My control will consist 1 CommandButton, 1 TextBox and 1 Label.
    My Objective is to have real time data passing between the same control which will be used at VB and HTML at the same time.
    For example, from HTML if I click a button, the text at textbox at HTML will be pass to the label at VB at the same time. And vice versa where when button at VB is click, the text at textbox at VB will be pass to the label at HTML.
    Help me.

    Hello Sam R.,
    The ActiveX will be written in VB6 with Measurement Studio6. It's some sort of tutorial lesson for me to test the capability of DataSocket.
    I want to create 1 control which will act as reader and writer. I am using Windows XP with IIS as web server and testing using 1 open VB6 Form with the control and 1 HTML file with the control using Data Socket Server with dstp://localhost/something. I dont know whether I need to have the script or not, what ever can do. tell me if it is the way to do. If it can be program directly in the control is better.
    Basically, yes. the command button inside the control should updates both label and textbox.
    If you can say that 1 datasocket control is enough, I will follow your advice because you are the expert. 
    I try before by using the example in DSReader and DSWriter but I cannot do the 'real time' updating when I click either button in VB6 or HTML page. It can only updated when I click again the commandbutton and     

  • Charge ipod and listen at the same time?

    hi,
    i sit at my desk for about 8 hours at work and would like to charge my ipod at my computer via usb and listen at the same time. is this possible? it's a pc computer here at work. and it does not have itunes installed and i don't see having itunes on it as a possibility.
    i don't like having to charge it, wait about an hour, then listen for a few hours, then charge it again.
    also, do you notice any battery "leakage"? i mean, i have some battery power at night when i turn it off, (yes, i do turn it off b/c the screen goes blank) and then when i get into work and try to turn it on, i get this battery looking thing and have to charge it.
    it's possible that the ipod came on while i was walking (it's in my bag), but this happens too often for me to think that it does.

    You'll need iTunes if you want to access your iPod and listen through your PC. Also you'll need to set it to manual update, see the articles below.
    Using iPod with Multiple computers
    Managing Your Songs Manually
    When your iPod is in your pocket make sure you have the lock on to disable the controls otherwise it is liable to get switched on and use battery power.

  • How to stream Webcam and Desktop at the same time?

    Hey Guy,
    I just got a little Problem with  FMLE... I want to stream live during a Game, but I dont know how to stream Desktop and Webcam at the same time ^^. The streaming Platform i want to use is twitch.tv.. the most common Gamin Platform I think...
    I got an IMac i7.
    Pls help me   I dont get how all these ProGamer do it -.-
    Thanks in advance
    Kathi

    You're going to need additional software or hardware.  If you're running a Macintosh, try CamTwist.  It's free and allows you to create virtual "cameras" from just about anything you can see on your computer.  It's a bit clunky getting used to the interfact and how it works, however.
    Hardware solutions (like scanline converters and video switchers) can get pretty expensive.  So you may want to go with a piece of software that can handle on-the-fly video compositing/switching.  There are two applications that come to mind right off the bat -- and lucky for you, both of them can also output to a live streaming server. 
    Wirecast is a popular choice, although the pricing starts around $500.  It's Macintosh/Windows.
    A very popular choice among gamers is XSplit (Windows only) and is a subscription-based model (you pay a small fee by the month, quarter, or year).  XSplit has some very impressive compression happening under the hood, and was originally designed for gamers who wanted to share their desktop, XBOX, or PS3 adventures... all while also being able to lay over banners, PIP (picture-in-picture) of themselves, or anythhing else they wanted to clutter the screen with.
    If you're running on Windows, give XSplit at shot.  It can easily handle your desktop (or most anything else) as a "camera" as well as being able to lay your webcam on top of the desktop feed.

  • Holding 'select' and 'menu' at the same time doesn't help. What now?

    First, the only thing that would happen when trying to turn it on was that it would show a message with the Ipod support website but nothing else. Now it doesn't even turn on. Pressing 'select' and 'menu' at the same time doesn't help and it is not on Hold. Any ideas or is it just dead?

    I have the same problem, only not so far gone. My iPod keeps showing me the logo for a couple seconds, then a red X that tells me to go to apple.com/support. I have been here several times and tried the five R's and nothing has worked. My iPod is also charged and the hold isn't on. My computer isn't recognizing that it is hooked up, my warranty is up and this is my second iPod. My first one's death was completely my fault, but I did nothing to prompt this lock down. I am about ready to try some of the risky hints online to get it to work but I would like something less extreme than taking the thing apart.

  • Tethering and Voice at the same time

    Is there a refence to show what models support using tethering and voice at the same time?

    I have the same problem with 2 iPhone 4S. When I'm only using data, download speed on 3G is 5.57Mbps, Upload 1.07Mbps and ping 79ms. As soon as I make or receive a phone call those speeds drop to:
    Download: 0.27Mbps
    Upload: 0.1Mbps
    Ping: 638ms
    With these speeds the web browser and all the other apps just keep trying to load or log in but nothing happens. As soon as I hang up, the speed goes back to normal. the problem is non existen while on wi-fi.
    AT&T triend to make some changes on the settings of my sim but itr didn't help at all. Just this morning I got a call from AT&T to let me know that the data speed is supposed top drop and that they don't make any promises as to the data speed, that their "talk & surf"propaganda only means that if you are using the internet, you can still receive phone calls....***? I never had this problem with the iPhones, 3G, 3Gs, 4. I asked them that I wanted to speak with somebody higher up or an enginner to discuss this issue but I'm still waiting to hear from them.
    The guys at apple were a little confused with this problem (I did reset the network settings but problem persisted, then reset all settings...nothing, then hard reset, restored from back up, deleted everything and set it up as new iphone...the problem is still there...) they asked if I could take the phone to the Apple store so they can run some advanced diagnostics...I'll have to take a road trip (closest Apple store is about 100 miles from my hometown)...Going on 1/5/2012....We'll see....

  • IPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    iPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    Talk to your email provider. They control their servers and what happens to your email.

  • Container resize and paint on the same time needed

    Hi all,
    I am trying to make a transparent window using screenshots and I am getting a flickering of the image I am drawing on the window.
    I think this is happening because setLocation() method moves the window and makes the repaint but with the old graphics on it. When the paint() will be called probably the paint event will be executed after the move event so on the window the two Graphics will be painted. This is what I think that causes the flicker.
    If anyone has an ideea of how can I make the move - setLocation() - and paint() in the same time please tell me!
    Thanks,
    Robert

    You cannot do this with a UCM hunt group. CCX cannot play media to the caller after you invoke a Call Redirect or Call Consult Transfer.
    You can do this if you configure the target users as contact center agents and use a Select Resource step. If none of the agents are available [ready] to take a call, you can play a welcome prompt or other actions that is interrupted if an agent becomes available. There are two noteworthy caveats to this:
    1) You can only offer a call to one contact center user at a time. This would be analogous to a Longest Idle hunt group model.
    2) There is a second branch that you will see on this step: Connected. Note that when an agent's phone is ringing, the caller is not in the queued branch of the step. The caller is hearing Network MoH.
    This means in practice you will want to put the welcome message before whatever else you want to do with the call and let it complete.

  • My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    OK great info!
    I found 2 possible ethernet to USB adapters:
    By "Plugable":  USB 2.0 to ethernet LAN wired network adapter - seems this will work, but I'll contact Plugable.
    2. Apple USB Ethernet Adapter
    Easily connect your MacBook Air computer to an Ethernet network with the Apple USB Ethernet Adapter. Small and light, it connects to the USB 2.0 port of your MacBook Air and provides an RJ-45 connector that supports 10/100BASE-T performance.  BUT NOT SURE IF THIS WILL WORK ON ANYTHING BUT a MacBook Air…
    One person commented: 
    This little gem used to be the device of choice for adding a second Ethernet interface to a Mac Mini Server and I'd been using one that way for about a year. After doing a software update to 10.6.6 it stopped working. Forewarned is forearmed – it appears that Apple is finally enforcing the MacBook Air system requirement.
    Thanks for any additional comments.
    Best regards,
    Steve Schulte
    Sunday 6 January 2013

Maybe you are looking for