Duplicate Submit with one click / IndexOutOfBoundsException

Hello all,
When I submit a form to insert data to the database with one button click, the form has been submitted twice. I can see the behavoirs from my debug statements. Sometimes, two records are inserted to database. Sometimes, the "IndexOutOfBoundsException" is throwed. I have downloaded the latest jsf RI. I have tested these many times.
Any help will be appreciated. Thanks in advance.
David

Hi Sergey,
The javascript:
function checkPassword(form )
     var password = form["editSelfRegister:loginPassword"].value;
     var confirmedPassword = form["editSelfRegister:confirmedPassword"].value;
     if(password != confirmedPassword)
          alert("Login Password and Password Confirm fields do not match ");
          return false;
     else
          form.submit();
          return true;
The command:
<h:commandButton id="saveEditingCommand" value="#{Message.saveEditing}"
actionListener="#{userBean.saveEditingSelfRegisterUser}" onclick="return checkPassword(this.form);" />
<h:commandButton id="cancelCommand" value="#{Message.logout}" action="cancel" immediate="true" />
Even I removed the form.submit(), the form is still submitted twice.
Thank you much for your help.
David

Similar Messages

  • How to duplicate tabs with one click in Firefox 35 (Mac)?

    Trying to switch from Chrome to Firefox, but really missing that right-click "duplicate tab" option in Chrome--quick, easy, one-handed. Any suggestions for how to do this in Firefox 35.0? Former add-on is not compatible. Need this for Mac. Thanks.

    * Hold Ctrl and left-click or middle-click items in the history of the Back and Forward buttons to open a page from that list in a new tab<br>You can hold down the left mouse button on the Back or Forward button to open the tab history.
    * Duplicate a tab with its history by pressing the Option key and dragging the tab to a new position on the tab bar.
    *https://support.mozilla.org/kb/Keyboard+shortcuts
    *https://support.mozilla.org/kb/Mouse+shortcuts

  • Multiple tasks with one click

    My work involves manually changing multiple lines to a different graphic style, and then moving that line to a different layer.  As it is now, I am changing the graphic styles, choosing Select < Same < Fill & Stroke, and then moving the lines to the appropriate layer.  I am wanting to know if there is a way to change the graphic style, and move the line to the different layer with one click.  I'm ignorant when it comes to scripting, but was wondering if there are any scripts that would perform this function.

    You need to fully explain the setup. Otherwise, people making suggestions are just guessing. Here's my suggestion, based on what little information you have provided:
    You don't need a script for this; you can do it with a set of very simple Actions. Example:
    Assume your repetitive task requires three Layers, named Red, Green, and Blue. On each Layer, all objects need to have the same Graphic Style applied.
    1. New document. Create three Layers. Name them Red, Green, and Blue.
    2. Define three Graphic Styles. Name them Red, Green, and Blue.
    3. Draw an object (any object; a square, a line, whatever). Send it to Layer Red. In the Attributes Palette, type "Red" into its Note field. (This effectively "names" the object "Red".
    4. Draw an object, Send it to Layer Green. Type "Green" in its Note.
    5. Draw an object. Send it to Layer Blue. Type "Blue" in its Note.
    6. Draw an object on Layer Red. Select it.
    7. Actions Palette: New Action. Name the Action "Red." Set its color to red. Start recording:
    7.1 Edit>Cut
    7.2 Edit>PasteInFront
    7.3 Apply Graphic Style Red
    7.4 Stop recording.
    8 Actions Palette: Select the Cut step. From the flyout menu select Select Object.... In the resulting dialog, enter "Red". OK the dialog. The Action should now have a new Set Selection step listed after the Cut step.
    9. Actions Palette flyout menu: Button Mode.
    Now you have an Action named Red that appears as a red button in the Actions palette. Select an object. Click the button. The object is moved to Layer Red, and gets Graphic Style Red.
    10. Turn off Button Mode. Duplicate the Action. DoubleClick the duplicate. Change its name to Green and its color to green. Edit its Set Selection step to select the object named Green. Replace its Graphic Style step with a step that applies Graphic Style Green.
    11. Similarly duplicate and edit one of the two Actions to create a Blue Action. Put the Actions palette back in Button Mode.
    Now you can select any number of objects, and then move them to the Red, Green, or Blue Layer and apply the appropriate Graphic Style wiht one click.
    Now come back and reveal the specifics of your actual situation which renders all that work moot.
    JET

  • Run Multiple report with one click

    hi
    I have 60 reports with me and i want to run all 60 reports with one click. Is it possible to fire next report at the end of previous using code?????
    Any help would be appreciated

    Hi Swapnil,
    Yes it can be done in many ways. But you will need to analyze what exactally is required and what kind of reports are to be executed in sequence. WHats the report supposed to do, do they need to send some file or some data to external world, does it need to display any output?
    From within the program you can use the SUBMIT command to call each report program one after the other. Or schedule all the 60 reports in a background job such that each report is executed in each step.
    There are many other ways but i am really not sure why there is such a request? This is something really out of the odd :-).
    Hope this helps
    Cheers
    VJ

  • In the bookmark panel, how can I close all bookmarks files with one click?

    Every time I want to have just the files on the panel I have to close them on by one to have a genéral view of my bookmarks organisation. It would be so nice to have a feature to close everything with one click. But so fa I have been unable to find a solution. Thanks if you can help!

    Maybe Autoclose Bookmark&History Folders: http://www.sephiroth-j.de/1/mozilla/#ac-btf

  • Is there a way to open desktop icons on macbook pro osx with one click

    Is there a way to open desktop icons on macbook pro osx 10.8 with one click?

    You might look for third-party software for that, but there is no such option in OS X itself unless you drag the icon into the Dock.

  • How to minimize Final Cut pro with one click?

    I know you can minimize windows (canvas, timeline, etc) by pressing Command+M 4 times but how to minimize Final Cut pro with one click?

    Hold down the Option key and click the Minimize button on any window, all windows in the app will minimize.
    Don't know what or if the reverse of this is - so although it's a one click minimize all windows, I believe you have to re-enlarge them one at a time.
    MtD

  • How do I rename many photos all at one time with one click?

    I have got many photos of a sery and want to rename it all with one click only (instead of clicking through it all in single actions and wasting time).
    How can I rename many pictures/photos all together with one click only? -
    1) I have OS X Yosemite
    2) Aperture
    3) Automator App
    to use for this purpose, but I do not see through with any of it.
    Detailed Support for 1) and 2) and 3)  please!
    jona li

    Here is an article on how to batch rename files in Yosemite using just the Finder. This is a new feature in Yosemite. See if this article helps you get your files renamed.

  • Download and convert Youtube video to MP3---Just with one click

    Download and convert Youtube video to MP3---Just with one click
    Last week, when wandering around the Youtube watch.com, I was enthralled with the theme song of "Lost", especially the words of the song "I found out, on the corner of first and amistad, where the west was all but won all weeklong, smoking his last cigarette, I said: "Where you been?" He said: "ask anything.""......"
    I couldn’t help expecting to save this song to my personal players. What a delightful thing listening to the song while walking or waiting for a bus! Okay, do you have the same experience as me? When hearing an exciting speech or dialogue, are you thirsty for downloading them and saving as your best memory?
    Download, convert Youtube to mp3?—yes, you can.
    Anna, one of my best friends, has posed a question "I have a Mac notebook and I only need the audio (mp3 music) of a certain Youtube movie, what shall I do?" The solution to the problem is shown as below:
    Step one: Install a Youtube Converter for Mac as follows:
    Step two: import the URL of Youtube video (or batches of URL) you wanna convert using "Add URL" icon. Select output format like audio (MP3) by "Settings" and customize your output file path with "Browse".
    Step three: If you want your output audio much better, you can set the audio resolution like Bit Rate, Channels or Sample Rate presented in the following picture.
    Step four: Click "Ok” button, it automatically download and convert your youtube videos simultaneously. After a few minutes, you can get the desirable audio (mp3) you want and enjoy it on any portable devices.
    Download, convert Youtube videos to iPod, iPhone, iPhone 3Gs, PSP, Creative Zen, Zune, iRiver, and etc. --- done by one click.
    Generally, if you want to download a Youtube video and then convert them to MP3 for your mobile devices, you need two Youtube tools: Youtube Downloader and Youtube Converter. But, now, with Pavtube Youtube Converter for Mac, you can both download and convert massive videos by clicking one "Ok" button.
    Now, all the best, you can enjoy versatile Youtube music at a waiting room, on a bus, traveling, walking around the park or lying on your bed..

    Youtube's ToU specifically state that downloads of any content is prohibited unless there is a download button available for a particular video.

  • Delete photo's from organizer catalogue AND disk with one click?

    Hi,
    When deleting photo's from the organiser, PSE asks if i only want te remove the file from the organizer catalogue, or as well from the disk. In fact, i always want to do that. Now, it takes 2 clicks to confirm to delete a photo, which is time-consuming.
    is it possible to delete photo's from the organiser as well from the harddisk with one click? (or, just by clicking 'delete'.)

    fatmax3m wrote:
    Well, thats your opinion. IMHO, it's truly crappy. When sorting out photographs, en wanting to delete a hundred, it's really not convenient having to do all those extra clicks.
    I think Adobe should offer some tweaking features, for questions like this...
    But, thanx for the answer.
    If your main issue is to delete rapidly hundreds of files from disk, there are better ways in the Organizer. Did you notice that deleting a single file from catalog and disk is slow ? Even  deleting a dozen of selected files from disk (a single additional click) is slow. So, the best choice is to work in two steps. The first one is to select all the files to be deleted (a hundred, a thousand...) and mark them in some way : using the 'hide' feature, assigning a 'tobedeleted' tag (immediate even for dozens of selected files); then with all the files selected, delete from disk (and go drink a coffee...).
    I won't discuss the obvious question that those last methods let you check all possible deletions before committing the undoable choice

  • Start a call with a list with one click

    Hello.
    Don't know whether this is the right place, but: i've just created a list in Skype. What i hoped to do, is start a call with all the people in that list with one click. I'm using Skype on Mac/OSX, and can't find such an option (right clicking the list does not supply that option, starting a new conversation and trying to add the list seems impossible ....). Seems i have to add every individual from the list. Am i missing a feature? Or is this a feature request ?
    Kindest regards,
    Raoul

    Found it: http://www.cisco.com/en/US/customer/docs/voice_ip_comm/jabber/Windows/9_1/JABW_BK_CA48EE46_00_cisco-jabber-for-windows-administration.html

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • With one click, can one upload an entire folder containing at least 7GB of Excel spreadsheet to ICloud and then be able to view them on an Ipad using Numbers. Also, would this cause one to have to pay for over 5GB of space?

    Want to travel only with my Ipad.  Would like to easily upload, with one click, large 7GB folders of both Excel spreadsheets and Word documents to ICloud and then be able to view, change and create individual spreadsheets and documents using Numbers and Pages on my Ipad through the internet? Also, this would exceed the 5GB offered free, but someone said if I am only syncing and not backing up there would be no charge.  Please explain.

    You can't
    Pages and Numbers can save to iCloud, Word and Excel can not.

  • Printing pages and links with one click

    Is it possible to print a multiple page pdf document as well as any imbedded links in that document - with one click?

    Hi Sunnihval,
    No there isn't any option to print the mails as well as attachment with one go.
    You have to manually open the attachment and print.
    Regards,
    Rave

  • Accept all editions and changes with one click in a PDF document

    In Adobe Acrobat (7.09) I see how to accept changes in a PDF document individually, but is is possible to accept all editions and changes with one click, as it is in Word for example. For tips thanks in advance.

    Hi,
    To save usernames/passwords, you may have to make sure that '''Remember passwords for sites''' is still enabled in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Security''' while at the same time in the '''Privacy''' tab, '''Never remember history''' or '''Always use Private Browsing''' shouldn't be enabled and if '''Settings''' is visible here, make sure that '''Saved Passwords''' is not enabled (ticked).
    [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Security%20panel?as=u Security panel]
    [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Privacy%20panel?as=u Privacy panel]

Maybe you are looking for

  • How to use MfE with Yahoo Small Business e-mail ac...

    Hi, I am using N97, and trying to access MfE with my company's e-mail id. We have taken e-mail id from Yahoo Small Business.  My question is 1. Is it possible to access Yahoo Small Business's e-mail on my N97 using MfE (I am using it with normal Mail

  • My computer keeps freezing.

    It mostly does it when I move it however it also just randomly does it. I've tried testing each application individually to make sure its none of my applications. It completely freezes. The mouse doesn't move at all. I can also hear the computer stil

  • Sum up currency calculated column in a standard list view

    Hi How do I total up a currency format calculated column in sharepoint 2010. I am having a problem referring to the articles on the net. Nothing seems to be working. Can I use jquery or something, or can I do it with editing in in the sharepoint desi

  • Highlight colour change?

    is there a way to change the highlight colour? If I highlighted a text or website or something, the highlight colour is blue and is barely visible because I have a black/blue theme. I want to know if I can change the highlight colour to white or some

  • Strategy for Stock Posting (Upload)

    Hello Experts, One of the clients business is having around 45000 materials belonging to spares. They have 1 plant and 20-30 storage locations. Out of the total storage locations, around 15 are spares related.   So in this case, what should be the be