Does "onchange" not work with form submits?

Hello,
I have a simple select menu that I want to behave such that if the user clicks on any menu item, the form automatically submits. So here is the snippet of code:
<h:selectOneMenu id="allUserResidentialFeatures"
value="#{residentialFeaturesDTO.map.allUserResidentialFeatures}"
onchange="document.forms['myForm'].submit()">
<f:selectItems
value="#{utilitiesDelegate.referenceHandlesFromDTOsMap1}"/>
</h:selectOneMenu>
What happens is that if you click on the submit BUTTON, everything works fine: validation and the backing bean action is called, and navigation occurs.
BUT if you click on the MENU above, the form does something I cannot understand: the fields are validated (so it is going to the back end server), but then the form is redisplayed once again - and the backing bean action is NOT called.
Obviously the JSF lifecycle here is being short-circuited - even though I did not put "immediate='true'". But why? Isn't pressing the "submit" button and calling the "submit()" function exactly the same (ignoring the onsubmit event handler difference)?
very confused.. a day has passed on this .. if you can help, thanks.
-A
Message was edited by:
bland999

More information on this problem that I have yet to solve: I implemented a PhaseListener to trace the application during the two submits. There is a difference that I cannot explain:
If the form is submitted using the regular submit button (an h:commandbutton), the application transitions thru all phases normally, and during the INVOKE_ACTION phase, the beforePhase and afterPhase events sandwich the actual invocation to the backingbean action. In other words, I do see the call to the backing bean's action method.
But if the form is submitted using the automatic "onchange" submit() from the select menu, the phases are progressed normally as before BUT the beforePhase and afterPhase events occur with NOTHING between them: the action is not invoked.
Any idea why???
-A
No ideas...?
Message was edited by:
bland999

Similar Messages

  • I have a 2007 macbookpro w lion 10.7.4. Does swipe not work with this?

    i have a 2007 macbookpro w lion 10.7.4. Does swipe not work with this?

    What are you talking about? This is the iPhone forum.

  • Does Ipod not work with Windows 2000 NT?

    I keep getting an error when trying to install the Ipod CD... I tried downloading Itunes, but I am not sure how to get my Ipod to show up on it... any suggestions how to fix this?

    No it does not work with NT. the Ipod Tunes software supplied along with the ipod is only compatible with Windows XP. But is does work with Windows 2000

  • Why does Thunderbird not work with Windows 8.1

    I have used thunderbird now for about 6 years, for all my website accounts. During that time I have had very few problems, about 9 months ago I started using Windows 8, I transferred all my accounts from my old machines running on XP pro to new machines running Win 8 and thunderbird ran ok. I have auto updates running so I am assuming both thunderbird and windows are updating whenever! About 4 weeks ago I started experiencing major problems with Thunderbird, it would start then freeze, then it would start again then freeze, if I ran it in safe mode it would work for a while. Now it opens and freezes, the message at the top just says ' Thunderbird is not responding'. Even in safe mode now it will not work! I have tried uninstalling and re-installing, I have even tried installing an earlier version of Thunderbird, I Have deleted the profile and forced it to produce a new one, I have spent hours trawling different sites trying to find an answer, and you know what, the only conclusion I could come to was, nobody seems to care whether this problem is solved or not, so reluctantly I have had to give up and I moved all my accounts to Outlook, which works perfectly with Windows 8.1. I think that should have been the answer, right from the start of the problem!

    The point is, it shouldn't matter if you're using McAffee or Norton or not using any anti-virus at all. Thunderbird works on XP. Thunderbird works on Vista. Thunderbird works on 7. But despite what the FAQ says, Thunderbird does _NOT_ work on Windows 8. This is a problem that many people are having and Mozilla _OUGHT_ to be able to fix it.
    I hate to bitch because Thunderbird is free and it's a damned good program. But this damned good program that worked through three earlier iterations of MicroSoft operating systems is unusable on 8.1. Anybody who has any knowledge of user experience can tell you that a program becoming unresponsive at random for anywhere from 1 to 3 minutes is simply not acceptable.
    This problem has been known for quite some time now. Is anybody in Mozilla support even looking at it?

  • Does handoff not work with iBooks?

    Just starting to get used to using handoff and really enjoying the ability to continue work from one device to another seamlessly.  But it doesn't appear to work with iBooks.  Is that the case or am I doing something wrong?
    Thanks

    I have a blog on my iweb site (published on another
    server, not imac) and I have a subscribe button but
    when you click on it, you get some weird message and
    can't post any comments. Does the blog not work on
    other servers??
    Blog will work with non .mac servers, but commenting only works for .mac server. You do have other option for non .mac servers: http://haloscan.com

  • Why does hulu not work with ios5

    Just upgraded to ios5 on IPad.  Hulu does not work, any suggestions would be greatly appreciated

    http://itunes.apple.com/us/app/hulu-plus/id376510438?mt=8

  • How does syncing Notes work with Mountain Lion ?

    How does syncing Notes with Mountain Lion?

    Notes are synched via IMAP.  IMAP is a protocol most frequently used by email.
    So if you have an iCloud account and have set up a @me.com email address, that's what is used to sync.  For Gmail, that can be used as well, though Gmail's IMAP support has to be enabled on their site and their implementation is very nonstandard and can be problematic.  Best is to sync notes via iCloud.

  • V$SESSION_LONGOPS not working with Forms 6i

    Hi all,
    I am trying to create a progress bar using V$SESSION_LONGOPS. (As in fdegrelle.over-blog.com/article-10986844.htm).
    1) When i create form with Forms 10g, i will get successful results
    2) When i create form using Forms 6i, I can't get any records when fetching from V$SESSION_LONGOPS.
    Can anybody tell me how can i incorporate V$SESSION_LONGOPS to forms 6i.
    Thanks in Advance,
    Divya

    Hi all,
    No solution for this problem?
    Thanks in advance,
    Divya.

  • Does JDownloader not work with Firefox15.0.?

    I got Firefox 15.0.
    Usually when I right-click on a Download link, a menu comes up and ask me what I want to do. In this menu I had entry's for JDownloader. They are gone now. Is JDownoloader not compatible with Firefox 15.0?

    Do you mean [http://jdownloader.org http://jdownloader.org]? It is possible the add-on hasn't been updated to support Firefox 15 yet. I'd suggest contacting the developer via their support site.

  • Why does Skype not work with mavericks?

    I recently "upgraded" to Mavericks and find that several of my other applications no longer work...Great "UPGRADE" I think I know why it was offered FREE.

    Check with HP for new software, in the past after an OS upgrade I have had to delete the printer and re add it to get it to work. The upgrade to Mavericks this did not occur but it did when I upgraded to Lion and then Mountain Lion.
    If this does not fix it please start a new thread.
    regards

  • Why does Flash not work with multiple user-accounts on a single PC?

    Running XP-Professional (MediaCenter), SP3 and using IE 8, NIS 2010 (disabled during the installation of FP), 3 different user accounts on a single PC
    As user A (admin) installed FP ver.  10.0.45.2, and it works fine under the admin account, however, when logging-on as user B.  FP is not recognized (?) and user B is asked to intall FP agian, however, the installation fails.
    After removing the FP installation (as being user A) and then install FP as user B (who has also admin rights) , FP works fine for user B, however for user A, FP is not installed/recoginzed (?), and user A is being asked to install FP, however that installation the fails, and so on and so on , . . . . .
    Any suggestion to resolve this irritating behaviour?

    Hi busy, there is a thread that discusses this very issue with links, that includes screenshots which  you may find helpful.
    http://forums.adobe.com/thread/584941?tstart=0
    Regards,
    eidnolb

  • Why does coverflow not work with windows 7

    I installed windows 7 on my computer and now my iTunes does not show coverflow. I get a black screen that says "iTunes is unable to browse album covers on this computer."
    I thought a patch would be issued to resolve this, but it's been quite a while and no changes. I use the most up-to-date copy of iTunes.
    Does anyone have a solution?

    The point is, it shouldn't matter if you're using McAffee or Norton or not using any anti-virus at all. Thunderbird works on XP. Thunderbird works on Vista. Thunderbird works on 7. But despite what the FAQ says, Thunderbird does _NOT_ work on Windows 8. This is a problem that many people are having and Mozilla _OUGHT_ to be able to fix it.
    I hate to bitch because Thunderbird is free and it's a damned good program. But this damned good program that worked through three earlier iterations of MicroSoft operating systems is unusable on 8.1. Anybody who has any knowledge of user experience can tell you that a program becoming unresponsive at random for anywhere from 1 to 3 minutes is simply not acceptable.
    This problem has been known for quite some time now. Is anybody in Mozilla support even looking at it?

  • Just upgraded to snow leopard and my intellipoint mouse doesn't work, does it not work with the later versions of the OS

    I just upgraded to snow leopard and now my intellipoint mouse doesn't work, I tried downloading a new driver and it installs successfully except an extension but it still doesn't work, is this typical of the OS higher than 10.4? Is there any way I can get around this problem?

    You need to check with the mouse's developer and see if it's supported or not. That information wouldn't be known by users on this forum.

  • Why does firfox not work with gestures in mac version?

    Firefox does not respond to any gestures from majic mouse or pad

    the list of gestures in browsers:
    Safari, Chrome, Firefox
    Zoom In & Increase Font Size – Spread
    Zoom Out & Decrease Font Size – Pinch
    Go Back – Two Finger swipe right
    Go Forward – Two Finger swipe left
    Look Up Word in Dictionary – Three fingered double tap over word (Safari only)
    Smart Zoom – Two finger double tap (Safari only)
    Try update to update to v20.0

  • Safari not working with forms or logging in to cgi controled serverside app

    I can't login to adsense, my cgi calendar, my bank account, gmail etc.
    Everything works fine with FireFox
    other than this problem the browser works fine.

    At least you can log back in. If mine requires a login, I have to reset Safari or restart my Imac.

Maybe you are looking for