Weirdness when trying to use javascript to submit a button on a jsf page

code in question:
document.forms['logoutForm'].elements['logoutForm:_id7'].click();
alert("button clicked");
This works fine as is, the form gets submitted. I have to use this because there are multiple submits in this form for different things. Edit: What I mean is that I am submitting if the user presses the enter key from a text input and since I have multiple submits, I have to choose a particular one, I can't just use the form.submit() function.
The problem arises if I take out the alert. No alert box, it stops working - no submit. Alert popup included, I get the popup, but the page submits correctly AFTER I close the popup, even though the alert is after the submit in the code.
Anyone know what gives and how I can get the submit to work without the alert?
Message was edited by:
kdavenport
It appears that this might be an IE issue as it works in Firefox. Any thoughts?
Message was edited by:
kdavenport

This reply skirts around your actual question, but perhaps it may be useful for your situation. This link describes a JSF component that allows you to define the default action for your page, that is, the one that gets submitted when the Enter key is pressed:
http://www.jsftutorials.net/defaultActionTag.html
Note that you will see some warnings flash across the console when this component loads on the page (if you're monitoring that). As I understand it, this is because no renderer is specifically assigned for this component. Your default renderer will kindly do the job, but you'll still see the warning in development. It's nothing to worry about.

Similar Messages

  • Error JBO-36000 in JDEV 11 TP3 when trying to use an ADF LOV Input Text

    Hi,
    I'm using JDEV 11 TP3 ( 11.1.1.0.0) and i'm trying to use an ADF LOV Input Text on a JSF Page.
    In The Business Components Browser, It works perfectly.
    If I drop my Data Control on my JSF Page as an ADF Form, it works fine, too.
    But if I drop the same Data Control as an ADF Table when I run the JSF Page and when I click on the "magnifier" icon, I've got the folliwng message :
    ERROR JBO-36000 : unexpected expression token found... Server Exception during PPR.
    Can anyone explain me this message ?
    Thanks for adavance,
    Laurent

    Hi Frank, Thanks for trying to help me,
    I tried to do the same test on JDEV 11g TP2 (I've both TP2 and TP3 installed).
    It doesn't work either on TP2 : the LOV window appears, but it appears empty, with the "Fetching Data..." message.
    And in the OC4J Server Log, I've got the following complete Error Message :
    oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    GRAVE: Server Exception during PPR, #2
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.<init>(JUCtrlHierNodeBinding.java:160)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.<init>(FacesCtrlHierNodeBinding.java:62)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.createNodeBinding(FacesCtrlHierBinding.java:80)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.createRootBinding(JUCtrlHierBinding.java:341)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:76)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel$2.getRowIterator(FacesCtrlHierBinding.java:769)
         at oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet._computeCurrentRowKey(CurrencyRowKeySet.java:118)
         at oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet.iterator(CurrencyRowKeySet.java:34)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.writePojoSelectionState(TableRendererUtils.java:195)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1040)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:925)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:599)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:255)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:527)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ListOfValuesDialogRenderer.encodeContent(SimpleInputListOfValuesRendererBase.java:598)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeAll(PanelWindowRenderer.java:190)
         at oracle.adfinternal.view.faces.renderkit.rich.DialogRenderer.encodeAll(DialogRenderer.java:135)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:846)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ListOfValuesPopupRenderer.encodeAllChildren(SimpleInputListOfValuesRendererBase.java:634)
         at oracle.adfinternal.view.faces.renderkit.rich.PopupRenderer.encodeAll(PopupRenderer.java:225)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1271)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:753)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase._renderPopup(SimpleInputListOfValuesRendererBase.java:418)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.renderElementContent(SimpleInputListOfValuesRendererBase.java:234)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:133)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:846)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:153)
         at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:251)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:140)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:879)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:88)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._encodeTablePPRTargets(TableRenderer.java:420)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:269)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:527)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:136)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:374)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1271)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:753)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:619)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:241)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:611)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
         at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:915)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:821)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:599)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:383)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    I've just created the table with the Wizard, I did'nt change anything on it.
    I'm running my ADF Page under Firefox 2.0.0.9.
    Thanks for your help, if you've got any idea
    Laurent

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • TS3367 When trying to use FaceTime I can't because it says it is turned off in settings, it then ask do I want to turn it on , tap for yes and it sits there spinning. Face time is on in settings?

    When trying to use FaceTime I can't because it says it is turned off in settings, it then ask do I want to turn it on , tap for yes and it sits there spinning. Face time is on in settings?

    Have you tried signing out of your Apple ID, restart the iPad and then start all over again?
    Go to Settings>iTunes & App Stores>Apple ID. Tap the ID and sign out. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Then go back to Settings>iTunes & App Stores>Apple ID. Sign in again. Then go to Settings>FaceTime>On. See if it will stay turned on and it it does, sign in and setup.

  • Error message when trying to use media players on new T500 ( drivers? Other?)

    Getting error messages when trying to use Windows Media Player or InterActual DVD player to play DVD or play Audio files.
    Downloaded latest audio & Video drivers from Lenovo site , Windows XP 3 patch and latest apps from Win MP and InterActual...
    Any further ideas?   Help? :-)

    Hello,
    Thank you Community Members for providing a troubleshooting tip. It is very much appreciated.  First, you want to make sure that your system meets the minimum requirements, which can be viewed at the link below:
    VCAST Media Manager Specs
    Next, uninstall the VCAST application and reboot your computer. 
    Then, disable your firewall and antivirus program and download the VCAST Media Manager application again, which can be found at the web link below:
    VCAST Media Manager
    If you are still having trouble with this service, it will be necessary to contact our Technical Support team directly. Please call 1-800-922-0204, option 3, from an alternate phone and be in front of your computer if you need to call.
    Thank you.
    KellyW@VZWSupport

  • When trying to use MobileMe I am getting an error message: AppleSyncPref.exe - Entry Point not found  Can you help?

    When trying to use MobileMe I am getting an error messgae: AppleSyncPref.exe - Entry Point not found  Can anyone assist?

    MobileMe no longer exists...that system was discontinued and merged into iCloud.
    Your old MobileMe email addresses shoule still be valid, or convert into some form of user@ me .com or icloud . com.

  • I have Mac OSX 10.5.8 and get java "error" message when trying to use research tool on Morningstar Java referred me to Apple but they had no update.Any ideas? thanks.e

    I have a imac OSX 10.5.8 and get a java "error" message when trying to use a research tool on Morningstar.Java referred me to Apple but they had no updates. Any ideas? thanks.

    Well I solved my problem.
    What still doesn't make sense though is that dragging iTune audio files directly on to the iTunes application icon gave me the error message... which is why I originally discounted it as being a potential link problem. If I had been able to get files to open normally (i.e. without an error message) I would have known it was a simple link problem. Strange.
    Anyway... relinking my folder of audio files did the trick.
    If you don't already know how here are the steps...
    iTunes > Preferences > Advanced > click on the "Change" button and browse to the folder that contains all of your iTunes audio files... that's it.

  • After I purchased the creative cloud, I receive an error message when trying to use premier pro cc 2014.  It states "Adobe Premiere Pro 2014.2 has stopped working.  A problem has caused it to stop working.  Windows will close the program and notify you of

    After I purchased the creative cloud, I receive an error message when trying to use premier pro cc 2014.  It states "Adobe Premiere Pro 2014.2 has stopped working.  A problem has caused it to stop working.  Windows will close the program and notify you of a solution."  When I used the trial I never received this message.  Now after purchasing it I receive this error each time I open PP and am unable to use. it.  Any ideas or support to fix this issue?

    What does the detailed crash report say?
    And have you updated your video card drivers from the GPU maker's website? (most crashes on launch are due to bugs in out of date video card drivers)

  • Why do I keep getting an error message when trying to use passbook?

    Why do I keep getting an error message when trying to use passbook?

    Kind of hard to answer without some details such as iPhoto version and OS version. Are you signed into your Facebook account?

  • Why am I getting an error message when trying to use a template?

    Why am I getting an error message when trying to use a Pages template?

    You are getting an error message because there is an error.
    Knowing wht version of Pages you are using, what template you are attempting to open, and what error message Pages is sending you might help determine why you are getting that specific rror message. Without those, the first sentence above i pretty much all that can be said with any assurance.
    Regards,
    Barry

  • I received this error message when trying to use my time capsule.  MacBook Air.sparsebundle is already in use.  What does this mean?

    I received this error message when trying to use my time capsule.  Macbook Air.sparsebundle already is use.  What does this mean?

    First, restart the MacBook Air and the Time Capsule. In most of the cases, this solves the problem.
    If not, see > http://pondini.org/TM/C12.html

  • "500 internal server error" when trying to use F4 help in the variable sele

    Hi Experts,
    I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
    How could this be resolved?
    Quick reply would be very helpfull.
    Thanks in advance !!

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
    "Runtime error!
    Program:C:\Program Files\Lenovo\System Update\tvsu.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information."
    Can somebody please help me to get the Thinkvantage system updater working properly?
    Thanks-George
    This issue has since been resolved.Thanks-G

    I'm getting the same error.   I tried reinstalling system updater but it didn't help.

  • Since last update (today) I get invalid password when trying to use back to my MAC, password works everywhere else

    since last update (today) I get invalid Apple ID password when trying to use back to my MAC in Icloud app on my MAC, password works on all my other devices. GLITCH ?

    Try going to the Apple ID page on your web browser
    http://www.apple.com/support/appleid/
    and try to either retrieve or reset your password
    (obviously you had to be able to successfully log in to be able to post here)
    I was finally able to log in through my system preferences after about three or four hours. I ran a disk utility to repair permissions and restarted and it seemed to work ok.

Maybe you are looking for

  • How can I recover my currupted PDF file?

    I was working on comments for my PDF file (writing comments) suddenly my laptop got hung and when I restarted the computer and tried opening the file it showed the following comment "ädobe reader could not open the file because it is either not suppo

  • Structure of table and work area are not compatible - table control wizard

    Structure of table and work area are not compatible is the error i am getting when specifying my internal table and work area in my table control?  What am I doing wrong?

  • Help with Blog - Bolding

    Hey there, For some reason on my blog in BC I can't bold or italicize text; it shows up in the bold module but upon preview on the actual site they do not show up. Any idea what is happening? Underlining however does work. Thanks!

  • Remove or Change seconds in Date field

    Hello All, I have a field which is storing the start and end time. data type is date ( oracle 8.1.6). while the data is store into the table it is taking seconds also, but the requirement is to store only hours and minutes not seconds. for eg. if the

  • Missing .dng file exists as Cr2. How batch designate them?

    How the situation came about : I selected all edited photos  (regardless of noted stars) in the library module and chose to all "convert them into DNG", with the option to NOT remoove the original Cr2 after conversion. Lightroom stoped the process af