[BUG] javascript error on mozilla when click()

Hello I use javascript to simulate button click and send a postback to the server. Here is the java script:
document.getElementById('myId').click();
the button defenition in JSF id classic :
<h:commandButton id="myId" actionListener="#{myListener}">
When used with Internet Explorer this code works, when used in Firefox it complaines that it cannot find the javascript for the submit operation.!!!!!
Please give me a workaround, or some way to go ahead thank you.

Which Mozilla version are you using? This just works here in FF 1.5 and 2.0. And even IE 6.0 and 7.0.
JSF<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<f:view>
<html>
    <head>
    </head>
    <body>
    <h:form id="formId">
        <h:commandButton id="commandButtonId" value="button" action="#{myBean.action1}" />
        <h:commandLink id="commandLinkId" value="link" action="#{myBean.action2}" />
    </h:form>
    <a href="#" onclick="document.getElementById('formId:commandButtonId').click();">invoke button</a>
    <a href="#" onclick="document.getElementById('formId:commandLinkId').onclick();">invoke link</a>
    </body>
</html>
</f:view>MyBeanpackage mypackage;
public class MyBean {
    public void action1() {
        System.out.println("action1");
    public void action2() {
        System.out.println("action2");
}By the way .. This is definitely not a bug in JSF.

Similar Messages

  • Updated to ios7 and iTunes 11.1, Music won't play or Error sign ! when clicked on

    After updating my ios and itunes my music on my ipod will not play and an error sign ! shows up to the left of every song when clicked to play. Also when i undock the ipod it would show that all my music is gone! But when i redock the ipod it shows that all the music is still there! This is really frustraing to me because i have spent countless hours organizing my playlist and it would take about the same amount of time to redo them. Please Help!

    having the same issue, everything i have tried doesn't seem to work. never had a problem until i installed 11.1
    all my albums are now in the itunes library but even that isn't making any diffrence, spent a good few hours yesterday reinstalling my music...just a waste of time, same thing happened. will keep you posted if i find any answers

  • Javascript Error in EP7 when accessing SRM - Shop iView - SRM5.0

    Hi SDN
    We are expriencing a problem with our "Shop" iView rendered via EP7.  On a PC with the Sun JVM 1.4.2.10, when the Shop iView/Page loads, our users are havong a javascript error in their IE instance.  I've started the JVM console and got this description of the error.
    --> One funny thing, is that this error is not occuring if we are switching to the MS JVM embedded in IE...
    Have you ever had that on your side?  What can be done to fix this? We are on SRM 5.0 SP11. 
    Thanks!
    Eric L.
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.String com.sapportals.portal.epcf.DataBag.getObjectType(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObjectType: urn:com.sapportals.portal.SWF2EPCM:DataBag BbpMainDataBag class Null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.Object com.sapportals.portal.epcf.DataBag.getObject(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObject: urn:com.sapportals.portal.SWF2EPCM:DataBag BbpMainDataBag null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.String com.sapportals.portal.epcf.DataBag.getObjectType(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObjectType: urn:com.sapportals.portal.SWF2EPCM:DataBag BbpMainDataBag class Null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.Object com.sapportals.portal.epcf.DataBag.getObject(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObject: urn:com.sapportals.portal.SWF2EPCM:DataBag BbpMainDataBag null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.String com.sapportals.portal.epcf.DataBag.getObjectType(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObjectType: urn:com.sapportals.portal.SWF2EPCM:DataBag BBP0000.0001.00000000 class Null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    Invoking method: public java.lang.Object com.sapportals.portal.epcf.DataBag.getObject(java.lang.String,java.lang.String)
    Needs conversion: java.lang.String --> java.lang.String
    Needs conversion: java.lang.String --> java.lang.String
    22/08/08 10:12:30 AM INFO
         DataBag #0 getObject: urn:com.sapportals.portal.SWF2EPCM:DataBag BBP0000.0001.00000000 null
    Invoking method: public com.sapportals.portal.epcf.IDataBag com.sapportals.portal.epcf.EPCMfactory.getDataBag()
    java.lang.ClassCastException
         at sun.plugin.com.DispatchImpl.convertParams(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    java.lang.Exception: java.lang.ClassCastException
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    Edited by: Eric Longpré on Aug 27, 2008 9:21 AM

    I am having almost the same issue.  This is what my java console throws "load: class com.sapportals.portal.epcf.EPCMfactory not found."

  • ERM "Unhandled error; type conflict" when clicking Maintain in PFCG button.

    I am testing my installation of GRC and when creating a role in ERM with the role designer I click the "Maintain in PFCG" and am receiving an error:
    Unhandled error; Type conflict when calling a function module (field length).
    I have been doing some searching but have been unable to find a solution for this. I have implemented the items found in SAP Note 1291501 regarding security.
    Does anyone have suggestions on what the solution of this problem is or what I can do to troubleshoot this issue more?

    Hi Michael,
    Can you please share your other details like: What is the GRC AC version you are trying to test and the patch level of ERM and RAR. Try to check the System logs in the Configuration section. Check st22 suggested by Julius and also sm21 in the backend system for system logs . I hope you'll get some hint out of that.
    Regards,
    Gurugobinda

  • Javascript error in JSP when deployed to Weblogic

    Hi, I am getting the below Javascript error whenever I try to sort within an ADF table in my page once deployed in the Weblogic Server. Running it in local/integrated server is not causing any errors:
    Message: 'AdfIEAgent.superclass.createXMLHttpRequest' is null or not an object
    URI: http://{HOST_NAME}/{Context_Root}/afr/partition/ie/default/opt/boot-11.1.2.2.0-2121.js
    A little background:
    This application was a migrated Jdeveloper 10.1.3 application. I converted the converted trinidad table to adf rich tables.
    Thanks.

    Can you reproduce this error in Firefox/Chrome?
    How you converted trinidad tables(did you manually changed source or you recreated table(by drag and drop from data control)) ?
    Probably the fastest way to identify this problem is to create simple test case in JDev 11.1.2.2 and deploy to standalane WLS.
    If you can reproduce this error then this is some bug in ADF, but if this works as expected then you can compare content in ear files(included jar files, content of web.xml file, etc..) to find difference.
    Dario

  • "Error:null" problem when clicking on diagram view of .bpel file

    Hi all,
    At the moment, my bpel process complies fine and get no run time error, but when I click into .bpel file, I get an Error:null error, I am not too sure what this means. I also notice that thhe Bpel structure window in the corner is empty.
    Please help!!!
    Sonia

    The error disappeared the next day. I did not restart jdeveloper or my computer.
    Is it a bug from Jdeveloper? I am using 10.1.3.1.0.

  • "fatal error durring installation" when clicking on itunes - help

    I clicked on itunes shortcut when i started my PC and it said an error "fatal error durring installation". I've downloaded itunes about 3 times but it wouldn't get fixed.
    - help -

    Hey there,
    Take a look at this older discussion thread and see if it can help you out. Hope it does.
    http://discussions.apple.com/thread.jspa?threadID=1255199
    B-rock

  • Error on Page - when clicking the date picker

    Hi Gurus and Experts,
    I'm scheduling a report, when i click the date picker in the Report Parameter section, I got an Error on page (the date picker did not pop-out). What is the problem with this? My date parameter is working when not use for scheduling.
    Regards,
    JP
    Edited by: user10955574 on Nov 18, 2010 12:48 AM

    Hi
    I also encounter that error. The error says 'document.forms[...]' is null or not an object. It only occurs in the report parameters sections when scheduling a report. It works fine on viewing the reports and other that has date picker except from scheduling page.
    Please help.
    Thanks.

  • BUG - Artboard resizes on own when clicking height and then clicking width field

    Bug with artboard -
    I click on a square to create an artboard. Without changing anything if I click in the width field and then the height without changing anything, the art board resizes as shown in the second image in pic 1 (art board values change as shown in pic 2). If instead I click first in the height field and then width, they change as shown in the third pic (settings as in pic 3)
    Pic 1
    Pic 2
    Pic 3

    what version?

  • Error code 102 when clicking on iTunes icon

    What is error code 102 and how do I get rid of it? Jay

    Refer to this artile:
    iTunes for Windows: How to turn off Compatibility Mode
    http://support.apple.com/kb/TS1489
    For Windows 7, make sure all boxes in Compatibility tab are unchecked.

  • Resolved - Getting error when 'Click on Connect' in a Game

    Hi there,
    I have recently installed Windows 10 TP. and I have purchased a game Modern Combat 5 from store. And I am trying to connect to Facebook using embedded option given in the game so that my game data will be restored from previous games.
    However I am getting error as below when Click on Connect:
    <noscript>&lt;meta http-equiv="refresh" content="0; URL=/dialog/oauth?client_id=523631134360162&amp;amp;redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&amp;amp;response_type=token&amp;amp;display=page&amp;amp;scope=email%2Cuser_birthday&amp;amp;_fb_noscript=1"
    /&gt;</noscript>
    "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
    Attached the snip below:
    Regards
    Nag

    Hi ,
    you can check it in the return codes of the function that caused the error.
    Otherwise, it's a "communication error" - which could be just about everything that can cause a communication to break ,it needs EXCEL to read some info, but EXCEL is closed prematurely. So there is some kind of OLE or RPC communication going on in the background,which should not be interrupted.
    Please check
    Meaning of the SAP return codes:
    : 1) Gateway errors:
    : 221: Error in CPIC-SS 222: Storage bottleneck
    : 223: Network read error 224: Network write error
    : 225: Invalid request 226: No connection yet
    : 227: Gateway process terminated 228: Shared-Memory problem(read)
    : 229: Shared Memory problem(write) 230: No free LU
    assign point if helpful answer!

  • Delete Record, Javascript error

    Hi everyone
    Just wondering if you can help.  I am getting 2 javascript errors in dreamweaver when I try to enter a delete record using server behaviour.
    They are (in order they appear)
    While executing onblur in DeleteRecord.htm, the following javascript error(s) occured:
    In file "DeleteRecord":
    updateUI is not defined
    Then when I click OK, i get the following
    While executing onblur in DeleteRecord.htm, the following javascript error(s) occured:
    In file "DeleteRecord":
    initializeUI is not defined
    This is happening in all sites and pages.
    I have rebuilt the local configeration files and recreated DAT file etc but am now out of ideas.
    Anyone know of a solution for this??
    Much thanks in advance.

    Here's the full KB article.  Start with 12 & 4 and then go through the rest.  One of those is always the answer:
    http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html

  • GetDynamicContent, JavaScript error occured. CS5

    I start dreamweaver CS5 and soon after working I get the following error.
    "While executing getDynamicContent in AddressURL.htm, a JavaScript error occurred."
    I click ok and it goes away for a short time. After that it pops up repeatly and I cannot get it to stop.
    How do I take care of this?
    I recently got the Lynda.com Dreamweaver & Wordpress Video Tutorial.
    My excitment soon faded after loading WordPress onto a site.
    This error is inhibiting me from working in dreamweaver all together.
    Thanks,
    TheMeanMachine

    http://forums.adobe.com/thread/429114
    Most likely the problem will be solved by removing your user Configuration folder and restarting DW as described in the first entry there.

  • JavaScript error when a link is clicked

    Hello,
    I have a commandLink in my screen (JSF application). When I click on the link I am getting a javaScript error saying (in Firefox browser)
    clear_header_3Abanner_3ApasswordChange is not defined
    So when i checked the page source i could see that its generating the clear_header_3Abanner_3ApasswordChange(); tag extra as below
    span class="username">Joe McUser</span> | <a href="# onclick="[bclear_header_3Abanner_3ApasswordChange();document.forms['header:banner:passwordChange'].elements['header:banner:passwordChange:_link_hidden_'].value='header:banner:passwordChange:passwordLink';if(document. ...................
    I don't have a subview or form named "clear" and I am not sure where the _3A is coming from.
    My JSF looks like this
    <f:subview id="banner">
              <h:panelGrid styleClass="accentBar">
                   <h:panelGroup />
              </h:panelGrid>
              <h:panelGrid styleClass="headerBar">
                   <h:panelGrid styleClass="headerBanner" columns="3" columnClasses="logo,title,options">
                        <h:panelGroup>
                             <h:outputText styleClass="title" value="text" />
                             <h:outputText value=" " />
                             <h:outputText styleClass="subtitle" value="text" />
                        </h:panelGroup>
                        <h:form id="passwordChange" >
                        <h:panelGroup>
                             <h:outputText styleClass="username" value="Joe McUser" />
                             <h:outputText value=" | " />                         
                             <t:commandLink id="passwordLink" value="Change Password" action="#{bannerOptionDto.doUpdateChangePassword}" />
                             <h:outputText value=" | " />
                             <h:outputText value="Logout" />
                        </h:panelGroup>
                        </h:form>
                   </h:panelGrid>
              </h:panelGrid>
         </f:subview>
    Could somebody please help me with this problem.
    Thanks!

    I had problems with t:commandLink too. Try to switch it with h:commandLink

  • Javascript Error when clicking on any link in a google search

    Every time !!!
    I get this:
    Error: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]
    Now I know nothing of Javascript, but I know when to get annoyed:-)

    Google is always busy updating things, and Firefox can sometimes get files out of sync. When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

Maybe you are looking for

  • BI Launch Pad Home page error - Servlet Engine Exception: Index: 0, Size: 0

    Hi, I am encountering below error when I click on 'Home' button under BI launch Pad in BO BI 4.1 (Operating system - Linux, SP2) but able to log in successfully and can able to run the reports successfully. But the same when I tried with 'Administrat

  • Ae cs5 importing seq images all blacked out or only one frame - help

    I created a pan background and keyframed it and it is working fine. I then brought in pngs with transparent background as a seq and the image is all black when they imported into ae cs5 once one image was brought in correctly (the first image of the

  • Radio Bullet Data  Doesn't Export

    I am having trouble getting the radio bullet the user selects to export to my spreadsheet. One is Vacation and the other is PersonalLeave. I named the subfolder EmployeeInfo Any idea why the selection does not export. I did click the "Specify Item Va

  • AE Keeps refusing connections (still no answer??)

    So, we have an AE and when I plug it in, it works fine. Users can connect and all is well. After a little while (sometimes a few hours, sometimes days, sometimes minutes) users are not able to connect to the base station. When trying to connect from

  • Treo 700wx calendar not synching

    Hi, I am using a Treo 700wx and have been using it to synch with Exchange for a year successfully.  I recently had a problem that resulted in a hard reset of my phone so I had to reset up the Active Synch options.  Everything but my calendar is re-sy