Javascript error with JSF and TOMAHAWK

I've got two selectOneMenu in my page and I would like to change the selected item of the second selectOneMenu when an item is selected in the first selectOneMenu.
I tried to implement a solution using Tomahawk. The idea is to generate a click event on a hidden link when an item is selected like explained here:
http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces
When I click on the selectOneMenu, I always have following javascript error : object expected.
Here is my page:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
     <f:view>
          <head>
          </head>
          <body>
               <h:form id="Monitoring">
               <SCRIPT language="JavaScript" type="text/javascript">
               function clickLink(linkId)
                    var fireOnThis = document.getElementById(linkId)
                    alert('le champ a pour valeur : '+linkId)
                    alert('le obj a pour valeur : '+fireOnThis.value)
                    if (document.createEvent)
                    var evObj = document.createEvent('MouseEvents')
                    evObj.initEvent( 'click', true, false )
                    fireOnThis.dispatchEvent(evObj)
                    else if (document.createEventObject)
                    fireOnThis.fireEvent('onclick')
               </SCRIPT>
               <t:commandLink id="hiddenLink" forceId="true" style="display:none; visibility:hidden;" action="#{TotoBean.selectModule}"/>
                    <h:selectOneMenu id="modulefilter" value="#{TototBean.moduleId}" rendered="true" onchange="clickLink('hiddenLink');" >
          <f:selectItems value="#{TototBean.moduleList}" />
          </h:selectOneMenu>      
                    <h:selectOneMenu id="servicefilter" value="#{TototBean.serviceId}" rendered="true" onchange="clickLink('hiddenLink');" >
          <f:selectItems value="#{TototBean.serviceList}" />
          </h:selectOneMenu>      
               </h:form>
          </body>
     </f:view>
</html>
and my bean:
package com.toto.monitoring.bean;
import java.util.ArrayList;
import java.util.List;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
public final class TototBean extends Object {
     private ArrayList<SelectItem> moduleList;
     private ArrayList<SelectItem> serviceList;
     private String          moduleId;
     private String          serviceId;
     public TototBean() {
          super();
          // TODO Auto-generated constructor stub
          this.moduleList           = new ArrayList<SelectItem>();
          this.serviceList           = new ArrayList<SelectItem>();
          initModuleList();
          initServiceList();
     public String selectModule() {
          System.out.println("change");
          setServiceId("All Services");
          return(null);
     final List initModuleList() {
          System.out.println("init module list");
          moduleList = new ArrayList<SelectItem>();
          moduleList.add(new SelectItem("All Modules", "All Modules"));
          moduleList.add(new SelectItem("Module 1", "Module 1"));
          moduleList.add(new SelectItem("Module 2", "Module 2"));
          return moduleList;
     public List getModuleList() {
          System.out.println("get module list");
          return moduleList;
     public String getModuleId() {
          System.out.println("get module ID");
          return moduleId;
     public void setModuleId(String id) {
          System.out.println("set module ID");
          moduleId = id;
     final List initServiceList() {
          System.out.println("init service list");
          serviceList = new ArrayList<SelectItem>();
          serviceList.add(new SelectItem("All Services", "All Services"));
          serviceList.add(new SelectItem("Service 1", "Service 1"));
          serviceList.add(new SelectItem("Service 2", "Service 2"));
          return serviceList;
     public List getServiceList() {
          System.out.println("get service list");
          return serviceList;
     public String getServiceId() {
          System.out.println("get service ID");
          return serviceId;
     public void setServiceId(String id) {
          System.out.println("set service ID");
          serviceId = id;
Any idea ?
Thanks for your help.

The hiddenLink has no value. Does it really need one as it is just used to submit the form ?

Similar Messages

  • Problems with JSF and included subviews

    Hi everybody,
    I' ve got a problem with JSF and included subviews which makes me going
    crazy. I've got no clue why my web-pages are represent wrongly. The only
    tip I've got is that it must be connected with the kind I do include my JSF-pages.
    When I use <%@file="sub.jsp"%> my pages are are represent right. When I use <jsp:include page="Sub.jsp" /> or <c:import url="Sub.jsp" /> ( mark: the usage of flush="true" or flush="false" doesn't matter )
    my pages are represent wrongly.
    The usage of tags like f:facet or f:verbatim were also included but didn't point to an solution.
    I searched the whole Sun Developer Forum and some other web-sites for any solution for my problem but the given hints and clues didn't help. Now I'm trying to post my problem directly in Sun's Forum in hope to get help.
    My environment is the following:
    JAVA JDK 1.5 Update 4
    Tomcat 5.5.9
    JSLT 1.1
    Sun JSF 1.1
    Win 2K
    Here's my code:
    Main.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%
              String path = request.getContextPath();
              String basePath = request.getScheme() + "://" + request.getServerName()
                        + ":" + request.getServerPort() + path + "/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="<%=basePath%>">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <f:view>
              <h:form>
                   <div class="table">
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 1"/>
                             <h:outputText styleClass="tdinfo" value="value 2"/>
                        </div>
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 3"/>
                             <h:outputText styleClass="tdinfo" value="value 4"/>
                        </div>
                   </div>
              </h:form>     
              <jsp:include page="Sub.jsp" />
         </f:view>
    </body>
    </html>Sub.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <f:subview id="subview">
         <h:form>
              <div class="table">
                   <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 11"/>
                             <h:outputText styleClass="tdinfo" value="value 22"/>
                   </div>
                   <div class="tr">
                        <h:outputText styleClass="tdleft" value="value 33"/>
                        <h:outputText styleClass="tdinfo" value="value 44"/>
                   </div>
              </div>
         </h:form>
    </f:subview>stil.jsp
    <%@page contentType="text/css"%>
    <%
        String  schwarz     = "#000000",
                grau1       = "#707070",
                grau2       = "#c0c0c0",
                grau3       = "#e0e0e0",
                grau4       = "#e8e8e8",
                grau5       = "#fdfdfd",
                blau        = "#0000dd",
                tuerkis     = "#00cfff";
        String  liniendicke = "1px",
                linienart   = "solid";
        String allgemeineTextFarbe           = schwarz;
        String allgemeineHintergrundFarbe    = grau3;
        String infoTextFarbe                 = blau;
        String fieldsetRandFarbe             = blau;
        String fieldsetRandDicke             = liniendicke;
        String fieldsetRandArt               = linienart;
        String hrLinienFarbe                 = blau;
        String hrLinienDicke                 = liniendicke;
        String hrLinienArt                   = linienart;
        String inputAktivHintergrundFarbe    = grau5;
        String inputReadonlyHintergrundFarbe = grau4;
        String inputPassivHintergrundFarbe   = grau4;
        String inputPassivFarbe              = schwarz;
        String inputRandFarbe1               = grau1;
        String inputRandFarbe2               = grau5;
        String inputRandDicke                = liniendicke;
        String inputRandArt                  = linienart;
        String inputButtonHintergrundFarbe   = grau3;
        String legendenFarbe                 = blau;
        String linkFarbe                     = blau;
        String linkAktivFarbe                = tuerkis;
        String linkBesuchtFarbe              = blau;
        String linkFocusFarbe                = tuerkis;
        String objectGitterFarbe             = grau5;
        String objectGitterDicke             = liniendicke;
        String objectGitterArt               = linienart;
        String tabellenGitterFarbe           = grau5;
        String tabellenGitterDicke           = liniendicke;
        String tabellenGitterArt             = linienart;
    %>
    <%-- ----------------------------------------------- --%>
    <%-- Textdarstellung mittels der Display-Eigenschaft --%>
    <%-- in den Tags div und span                        --%>
    <%-- ----------------------------------------------- --%>
    *.table {
        display:table;
        border-collapse:collapse;
    *.tbody {
        display:table-row-group;
    *.tr {
        display:table-row;
    *.td,*.tdright,*.tdleft,*.tdinfo,*.th {
        display:table-cell;
        padding:3px;
        vertical-align:middle;
    *.td,*.th {
        text-align:center;
    *.tdright {
        text-align:right;
    *.tdleft {
        text-align:left;
    *.tdinfo {
        color:<%=infoTextFarbe%>;
        text-align:right;
    *.th {
        color:<%=infoTextFarbe%>;
        font-weight:bold;
    }thanks in advance
    benjamin

    Hello Zhong Li,
    many thanks for your post, but it didn't work.
    My problem is that the JSF-Components im my included or imported
    JSP-Pages does not accept any kind of style or styleClass for
    designing. The components take over the informations for colors
    but not for alignment.
    When I take a look at the generated JAVA-Source in $TOMCAT/WORK/WEBAPP for my sub.jsp ( sub.java )
    it seems that the resulting HTML-page would be presented correctly.
    But later when I start the application via Firefox or Mozilla the html-sourcecode is totally wrong.
    In my example I create a simple grid with 2 rows and 2 columns.
    Both columns contains JSF-Outtext-Components and are included with div-tags.
    The generated Sub.java shows that the text would be setted in the div-tags. Unfortunately the html-sourcecode represented by my browser shows that jsf-text is not setted in the tags but in the <h:form> tags. The div-tags are neither rounded by <h:form> nor containing the JSF-OutText-Components.
    Any clue?
    Many thanks Benjamin
    Here is the html-code from Firefox:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="http://polaris21:8080/webtest/">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <form id="_id0" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
              <div class="table">
                   <div class="tr">
                        <span class="tdleft">value 1</span>
                        <span class="tdinfo">value 2</span>
                   </div>
                   <div class="tr">
                        <span class="tdleft">value 3</span>
                        <span class="tdinfo">value 4</span>
                   </div>
              </div>
              <input type="hidden" name="_id0" value="_id0" />
         </form>     
          <form id="SUB:_id5" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
               <span class="tdleft">value 11</span>
              <span class="tdinfo">value 22</span>
              <span class="tdleft">value 33</span>
              <span class="tdinfo">value 44</span>
              <input type="hidden" name="SUB:_id5" value="SUB:_id5" />
         </form>
         <div class="table">
              <div class="tr">
              </div>
              <div class="tr">
              </div>
         </div>
    </body>
    </html>

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Javascript error with f:subview and jsp:include

    Hi,
    I have tried to include one jsp page with jsf components into another jsp page with jsf components. But somehow I get a Javascript error.
    I have of course included the jsp:include into an f:subview like this:
    <f:subview id="tree" rendered="#{tabsBacker.treeRendered}">
    <jsp:include page="mission.jsp" />
    </f:subview>In mission.jsp, all non-jsf tags are surrounded by f:verbatim tags (otherwise, JBoss would complain anyway).
    The Javascript error says: "elements.form1:_link_hidden_ is null".
    "form1" is the name of the form in my jsp page which includes the other one.
    As soon as I remove the jsp:include thing, everything works fine. The include happens in a t:panelTabbedPane, and (probably as a result of the javascript error), the tab where the included page should be shown, can't be displayed. I can click on the tab, the page is reloaded, but nothing else happens.
    The error occurs in IE and in Firefox.
    Can anyone help me to solve this problem??
    Kind regards,
    Wiebke

    It's just a jsp fragment file. Here's the start of the jspf included above:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx" %>
    <f:subview id="browseForm">
    <table class="box" width="100%">
         <tr>
              <td><h:outputText value="#{labels.someValue}" styleClass="smalltitle"/></td>
         </tr>And so on. This was just done to stop the jsp files becoming too long, I think. So the subview tag is included in the jspf file rather than around the jsp file as you have it.
    Illu

  • Getting javascript error in jsf portlet

    Hi,
    I wrote a jsf page with command links calling an action in ManagedBean. Its works fine if run as jsf page. But when I associate the jsf page with a portlet and run the page, I am getting javascript error when clicked on the command links.
    Please help me to resolve this problem.
    The jsf page
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/groupspace/tags/activemenus" prefix="activemenus" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <html>
    <head></head>
         <body>
    <f:view>
         <netuix:namingContainer id="facesContent">
              <h:form>
    <f:verbatim>
         <table border="0" width="100%">
              <tr>
                   <td>
                        <h:outputLabel value="Notifications" for="heading"/>
                   </td>
                   <td>
                        (<h:outputText value="#{notificationsBean.notificationsSize}" escape="true"/>)
                   </td>
                   <td>
                             <h:commandLink action="#{notificationsBean.showInWorkList}" immediate="true">
                                  <h:outputText value="Show in Worklist"/>
                             </h:commandLink>
                   </td>
                   <td>
                        <h:outputText value="hai"/>
                   </td>
              </tr>
         </table>
    </f:verbatim>     
              <div style="overflow: auto; width: 100%; height: 200px">
              <h:dataTable value="#{notificationsBean.userNotifs.notificationsList}" var="notification">
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="caseNB"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="####"/>
                                  <h:outputText value="Case ID"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.caseNB}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}" immediate="true">
                                  <h:outputText value="From"/>
                                  <f:param name="column" value="senderNM"/>
                                  <f:param name="pattern" value=""/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.senderNM}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="priorityCD"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Priority"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.priorityCD}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="subjectTX"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Subject"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.subjectTX}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="createDT"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="dd-MM-yyyy"/>
                                  <h:outputText value="Created(ET)"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.createDT}"/>
                   </h:column>
              </h:dataTable>
              </div>
                   </h:form>
    </netuix:namingContainer>
    </f:view>
    </body>
    </html>
    The Managed Bean:
    public class NotificationsManagedBean {
         private UserNotifications userNotifs=new UserNotifications();
         private int notificationsSize;
         private String column;
         private String sortDirection = "asc";
         private String pattern;
         public UserNotifications getUserNotifs() {
              getUserNotificationsList();
              return userNotifs;
         public void setUserNotifs(UserNotifications userNotifs) {
              this.userNotifs = userNotifs;
         public int getNotificationsSize() {
              getUserNotificationsList();
              return notificationsSize;
         public void setNotificationsSize(int notificationsSize) {
              this.notificationsSize = notificationsSize;
         public String getColumn() {
              return column;
         public void setColumn(String column) {
              this.column = column;
         public String getSortDirection() {
              return sortDirection;
         public void setSortDirection(String sortDirection) {
              if(sortDirection != null && sortDirection.trim().length()!=0)
                   this.sortDirection = sortDirection;
         public String getPattern() {
              return pattern;
         public void setPattern(String pattern) {
              this.pattern = pattern;
         public String showInWorkList() {
              System.err.println("test");
              return "success1";
              //TODO Auto-generated method stub
         public String sort(){
              sort(column, sortDirection);
              return "success";
         @SuppressWarnings("unchecked")
         private void getUserNotificationsList()
              ArrayList<Notification> notificationsList = new ArrayList<Notification>();
              for(int i=0;i<20;i++)
                   Notification notif = new Notification();
                   notif.setCaseNB("122"+i);
                   notif.setCreateDT("12-12-2002");
                   notif.setSenderNM("testing1"+(i%3));
                   System.out.println(notif.getSenderNM());
                   notif.setSubjectTX("testing2"+(i%4));
                   System.out.println(notif.getSubjectTX());
                   notif.setPriorityCD("High");
                   notificationsList.add(notif);
    userNotifs.setNotificationsList(notificationsList);
              if(userNotifs.getNotificationsList()!=null)
                   this.setNotificationsSize(userNotifs.getNotificationsList().size());
    * <p>Return the <code>FacesContext</code> instance for the
    * current request.
    protected FacesContext context() {
    return (FacesContext.getCurrentInstance());
    protected void sort(final String column, final String direction) {
              java.util.Comparator comparator = new SortComparator(userNotifs.getNotificationsList(),column,direction,pattern);
              java.util.Collections.sort(userNotifs.getNotificationsList(), comparator);     
              if(direction.equalsIgnoreCase("asc"))
                   setSortDirection("desc");
              else
                   setSortDirection("asc");
    }

    Too less relevant information and too much irrelevant code.
    First of all, which JS error exactly are you getting? You as developer should know better that you shouldn't ignore errors. They contain helpful information about the cause of the problem and thus also how to solve it. Where exactly does the error come from? (view the generated HTML source). Which JSF implementation and version exactly are you using? Which webbrowser exactly are you using? Does it work in/with other/newer versions?

  • Help! Why am i getting these JavaScript errors in Dreaweaver and how can I fix it???

    This only happens whenever I try to access code view, and it won't allow me to add any more code. This is the error message I get:
    "While executing DWMenu_View_Text command in menus.xml, the following JavaScript error(s) occurred:
    Exception thrown in native function"
    A third party tried to access my site, but the page froze, with an error message:
    "Script error on line........."
    I'm not sure if this has something to do with FileZilla, but now when I try to open it, I get number of error messages about, "failed to write xml file" and "Application Data\FileZilla\filezilla.xml (error 5: access is denied.)"
    I've tried deleting the WinFileCache from Dreamweaver and disabled all extensions, but none of these helped.
    Please help. does anyone know what's going on?

    I've never heard of a Filezilla DW extension, but this is the KB article for you:
    http://kb2.adobe.com/cps/405/kb405604.html

  • Fix for Dreamweaver CC 2014.1 JavaScript Error With All ASPX Files

    Entire morning wasted.
    Adobe's upgrade to Dreamweaver 2014 to 2014.1 on Windows 7 Professional has broken the product across the board and it no longer opens any .aspx pages correctly.  A large number of people use .NET and now we can no longer access/use these files/pages without multiple JavaScript errors.  Particularly those that have edited the MMDocumentTypes file to make the product work in the first place since they stopped supporting the users that develop in ASP.NET.
    Every time a .aspx file is now opened, the following JavaScript error is received: "While executing translateCustomControl in ExternalRenderers.html, a JavaScript error occurred.  Click 'close' and it appears again...over and over.  Our sites are all unable to open in DW because of this.  It worked fine in earlier versions of DW, including 2014.  It's only 2014.1 that broke everything.
    The fix for this:
    1. Follow instructions on this out-of-date help file: Change, add recognized file extensions | Dreamweaver
    2. (and the part that's new): The MMDocumentTypes file is located in  C:\Users\*your username*\AppData\Roaming\Adobe\Dreamweaver CC\Configuration\DocumentTypes directory. Open that file and add aspx back to the <documenttype id="HTML"> declaration at the top.
    I am posting this issue here in hopes that some of the users won't waste most of the day trying to figure this out.
    Chris Lee

    Hi Ivan,
    I'm having that exact same problem now...in addition to that JavaScript error message coming back.  I submitted a bug report last week about this and received the following reply:
    Hi Chris,
    We would like to let you know that we able to reproduce this issue at our end. Thanks for reporting this.
    We will try to prioritize it for fixing. This might take some time. We thank you for your patience with us in this regard.
    Please let us know if you need help regarding anything else. We will be more than happy to help you.
    Thanks,
    Arindam Ghosh
    Dreamweaver Team,
    Adobe Systems
    Hopefully they can get this fixed soon, as it's ground my work in the software to a halt.
    Chris

  • UIX Javascript Error with Date Picker

    Hi all,
    I am using JDeveloper 10.1.2.1.0 with JHeadstart 10.1.2.2.32 to create UIX pages. I have a page with a filter by search field. If I select the date picker on this page in IE version 6 or 7, I get the following javascript error:
    Error: 'length' is null or not an object
    I have found this in the Common2_2_20.js, which is part of the jslibs
    function _accumulateNumber(
    a0,
    a1
    var a2=a0.currIndex;
    var a3=a2;
    var a4=a0.parseString;
    ***var a5=a4.length;***
    if(a5>a3+a1)
    a5=a3+a1;
    var a6=0;
    while(a3<a5)
    var a7=parseDigit(a4.charAt(a3));
    if(!isNaN(a7))
    a6*=10;
    a6+=a7;
    a3++;
    else
    break;
    if(a2!=a3)
    a0.currIndex=a3;
    return a6;
    else
    return(void 0);
    }With Firefox 1.5.0.4, I can get the date selector window to open, but when I select a date value, I get this javascript error:
    a0.select() is not a function
    I have found this in the Common2_2_20.js also. Here is the code where the error is occuring.
    function _dfsv(
    a0,
    a1
    if((a0==(void 0))||(a1==(void 0)))
    return;
    a1+=_getTimePortion(a0);
    var a2=new Date(a1);
    var a3=_getDateFieldFormat(a0);
    var a4=a0.value;
    var a1=a3.format(a2);
    if(a0.value!=a1)
    if(a0.onchange!=(void 0))
    if(_agent.isIE)
    a0.onpropertychange=function()
    var a5=window.event;
    if(a5.propertyName=='value')
    a0.onpropertychange=function(){};
    a0.onchange(a5);
    a0.value=a1;
    else
    a0.value=a1;
    var a5=new Object();
    a5.type='change';
    a5.target=a0;
    a0.onchange(a5);
    else
    a0.value=a1;
    ***a0.select();****
    a0.focus();
    }I am able to use the date picker on other pages and even different parts of this page. The date search field is of type dateField.and is part of a switcher. Does anyone have any ideas as to why this is occuring or how I can work around it? Thanks in advance. I really appreciate all of your help.
    Susan

    Thanks for the reply. As a matter of fact, in my case the error happens in a UIX page generated by JHeadstart. I did some JavaScript debugging using the FireBug Firefox entension and I found that it is some JHeadstart JavaScript that causes this problem.
    The JHeadstart JavaScript passes on an array of input elements to the AFD JavaScript function and the problem arises when the select() method is called on the array, rather than an input element in the array.
    I will try to solve my issue by modifying the JHeadstart JavaScript code. Please see the JHeadstart forum somewhere in the near future for my post(s) about this :-)
    Thanks, Wouter

  • JavaScript error with CourseBuilder

    Hi!
    I intend to use CourseBuilder for a simple test.
    I've done the CourseBuilder tutorial and everything went
    fine.
    Two weeks later I tried to implement an interaction in my
    page... and got an error message after I had clicked on the action
    manager tab:
    "Action manager data was invalid. “ The next message
    was about a JavaScript-error in onLoad (coursebuilder
    interaction.htm).
    It was not possible any more to edit the interaction in any
    site (also not in the tutorial test site...).
    I already have de-/re-installed all extension (and only try
    CourseBuilder alone), de-/re-installed dreamweaver, deleted all
    support files, build a new test site...
    I'm confused about it - but I need to deliver the test pretty
    soon.
    Maybe I did a basic mistake?
    Your help would be appreciated very much
    Kind Regards
    STH

    It's still very strange. I really have tried quiet a lot of
    options but I still can't start the action manager in
    CourseBuilder. In the last weeks I googled a lot. There are some
    mistery reports that CourseBuilder stoped to work suddenly. But
    eighter is was solved by a new installation or there was no answer.
    Finally I made it with forms and layers in dreamweaver
    directly.
    Even though you have to do more editing...
    at least you are not sitting in front of a black box without
    knowing what's going on.
    STH

  • Javascript Error with UIX Page

    Hi all,
    I am using JHeadstart 10.1.2.2.32 with JDeveloper 10.1.2.1.0 to develop UIX pages. I have run into the following problem with one of my UIX pages. We have a page with a table view which uses sortable headers. In certain situations when using the sortable headers in IE 6.0.2900.2180, a javascript error appears. This does not occur using Firefox.
    It says:
    Line: 2894
    Char: 1
    Error: 'type' is null or not an object
    Code: 0
    URL: (the URL of the page)
    I have figured out that the error is occuring in the Common2_2_20.js file on the following line, which is part of the function _multivalidate:
    var a7 = a6.type; The error only occurs in the following situation. If the user has just logged into the system and certain rows in the table are read-only and others are editable. If you click on any of the sortable headers, it will sort fine the first time. However, if you click on the sortable header again, the javascript error appears. It only happens if you click on the sortable headers twice in a row.
    I have tried taking out the line of code, but then I can not sort the headers at all.
    I read in the forum that the error can occur because of the way IE handles the compression of javascript files. We changed the setting on the app server to not compress javascript files. I then undeployed and redeployed the application. However the same error is still occuring.
    If you need any more information, please let me know. Thanks in advance.
    Susan

    We found out that we had a custom script on the page that was interfering with script in the Common2_2_20.js. By moving the script to the end of our page, it solved our problem.
    Susan

  • Javascript error with insert record. Please help!

    I  contacted Adobe  support today and they said to get on these forums as  they cant help  with coding errors.
    When i try to  insert a Record I  get the following error:
    while executing onLoad in  InsertRecord.htm, the  following JavaScript error(s) occurred:
    At  line 665 of file  "C:\Program Files\Adobe   DreamweaverCS4\Configaration\ServerBehaviours\PHP_MySQL\InsertRecord.js":
    name    has no properties
    Line 655
          if (columnName.toUpperCase() ==   name.toUpperCase())
    Im running Win 7 64bit
    I contacted  Adobe  support today and they said to get on these forums as they cant  help  with coding errors.
    I have formatted my Pc and reinstalled and the  same error  comes up. If I try to edit and existing insert record it  works fine,  when I create a new page and then try to add a new insert  recordset i  get this erro again.
    i have since reinstalled Windows & 32Bit  to see if  that helped, nope. I have installed no extensions its a  clean install.
    Any  help  after spending a small fortune on this software.

    I think you are trying to run the program but you don't have the required class POP3Session.class or it's .java file which you can compile.
    Another example for pop3 and smtp is on the following link..check if it helps you..
    http://www.cs.umu.se/~hed/java/ch11.htm

  • Still getting Javascript error with new version of UIX

    I'm facing some problem after changing my UIX framework version (2.2.3030829.1626).
    Currently I'm using UIX version (2.2.3030829.1626) . Paging with table is not working with new frame work .
    It is giving me javacript error "object doesn't support property or method" when clicking 'Next' .
    It's working fine with old version.
    We had used proper cabo directory. These files are in sync with the version of the runtime
    Here is our finding
    I found a error in _updateFormActions() function from MarlinCoreb2.js file.
    In this function it is giving error at
    if(a8!=a6)
    a7.action=a6 line (line # 1841,1842). If I comment out this two lines page is
    working properly without any javascript error.
    This problem is a bit tricky....
    Because it seems to be a problem with the UIX framework that only occurs on some versions of the Internet Explorer. On some version (IE 6.0.2600.0000) it works fine
    and it also works on the Mozilla Firefox browser.
    Can any one advice on the same?
    Thanks in advance
    Anindya

    I answered this question on a different thread.
    Do NOT post the same question multiple times. If you require more complete or prompt assistance than you receive on these forums, contact Oracle Support.
    -brian

  • Javascript error with HTML Editor

    HI,
    I was wondering if anyone could help me with a javascript error which appears upon page load. It only appears in internet explorer,
    This person appears to have solved the problem but does not explain where abouts they made the change required.
    FCK Rich Text Editor aka HTML Editor Standard IE Error/Bug
    This problem also appears on the apex demo of new features.
    If anyone can respond with help, it would be greatly appreciated
    Regards
    Kev

    Hello Kevin,
    This is a difficult issue as the init code for the editor item is being generated internally by the APEX engine, and we don’t have any control over it. As I see it, a complete solution can only be provided by the APEX team.
    Until then I’m using a workaround, based on the original init code. The FCK Editor takes a standard textarea and convert it into the editor item, based on its init parameters.
    First I’m uploading the FCK JavaScript code, using the page HTML Header Text (If you are using the editor a lot, you can define a page template to do that for you). The code is:
    <script type="text/javascript" src="/i/fck/fckeditor.js"></script>Now I’m using a regular textarea item as the base item for the editor. I’m using a regular onload event to init this item:
    onload="initFCK('P80_MY_EDITOR');"The JavaScript function I’m using is similar to the following:
    function initFCK(pItem) {
                var oFCKeditor        = new FCKeditor(pItem) ;
                oFCKeditor.BasePath   = "/i/fck/" ;
                oFCKeditor.Width      = '760';
                oFCKeditor.Height     = '105';
                oFCKeditor.ToolbarSet = 'Basic' ;
                oFCKeditor.Config[ "AutoDetectLanguage" ] = false;
                oFCKeditor.Config[ "DefaultLanguage" ]    = "en";
                oFCKeditor.ReplaceTextarea() ;
    }Of course, the init parameters can be changed according to your specific needs.
    This code works fine on IE and FF (didn’t check other clients).
    Regards,
    Arie.

  • JavaScript errors with IE7

    I use Dreamweaver MX; OS is XP Home. I installed IE7
    yesterday, and today, upon opening Dreamweaver MX, discover a mess
    of JavaScript errors when I attempt to move between different, open
    pages which is
    most annoying! I've looked for updates/patches for both DW
    MX and IE7 but no success. Any suggestions?!

    Thanks, ChrisBloom7. The problem persists -- I suspect it's
    to do with the IE7 install as that's the only thing different.
    Previously, MX ran beautifully.
    The error windows upon a reboot are as follows -- I click
    through each of the error messages with either an OK or cancel:
    1) "While executing Browse_Back enabled in toolbars.xml a
    JavaScript error occurred." This, with a yellow triangle and "!"
    sign on the icon.
    2) "While executing Browse_Back enabled in toolbars.xml a
    JavaScript error occurred." This with a white "X" on red circle
    icon.
    3) "While executing Browse_Forward enabled in toolbars.xml a
    JavaScript error occurred." Same icons as above.
    4) "While executing Browse_Forward enabled in toolbars.xml a
    JavaScript error occurred."
    5) "While executing Browse_Stop enabled in toolbars.xml a
    JavaScript error occurred." Same icons as above.
    6) "While executing Browse_Stop enabled in toolbars.xml a
    JavaScript error occurred."
    7) "While executing getCurrentValue in AddressURL.htm a
    JavaScript error occurred." Same icons as above.
    8) "While executing getCurrentValue in AddressURL.htm a
    JavaScript error occurred."
    While navigating between open pages, the following error
    messages pop up consistently:
    1) "While executing getCurrentValue in AddressURL.htm a
    JavaScript error occurred." Same icons as above.
    2) "While executing getCurrentValue in AddressURL.htm a
    JavaScript error occurred." These occur every time I navigate/click
    on a different open page.

  • Fix for javascript errors in OrganizationDesigner and other places

    A sequence of DLL/Control re-registration to clear up javascript errors in all the OrganizationDesigner popups.
    I had a lot of problems with javascript errors in Org Designer.  I was able to fix them by re-registering some IE controls and libraries.  In doing so I have cleared up all my javascript errors.  Here is the sequence - hopefully it helps others.
    open a command window and type the following:
    regsvr32 msscript.ocx
    regsvr32 dispex.dll
    regsvr32 vbscript.dll

    Hi Blaine,
    This will also fix some errors you might see when a customer clicks on a calendar date/time field and the calendar shows up blank.  Was difficult to diagnose it but found unrelated articles on the internet.  Thanks for posting here and saving many people the time.
    Thanks,
    Ant

Maybe you are looking for

  • How can I fix this select without using subquery?

    Hi guys is there any way to do the where below (in bold) without using an aggregate query before? select SUM(NET_AMOUNT) as net, SUM(TAX_AMOUNT) as tax, SUM(NET_AMOUNT)+ SUM(TAX_AMOUNT) as total from ledger left join alloc on ledger.trxid=alloc.trxid

  • Files on Tracker

    I have three old files on Tracker that I cannot access due to a "network resource not found" message.  I am not able to "stop collecting data", and also "remove from tracker". I would like to clean this old material out; how can I do that?

  • Idoc number in email

    Hi, We have solman 7.1 with oracle DB on HP-UX. i have configured the CCMS alerts for IDOC interface errors and assigned auto reactions for that. In the methods parameter SUBJECT_ALERT_CONT i have given $NODENAME. My problem is that i dont get the id

  • CS4 and Printing Problems

    I have just upgraded to Photoshop CS4. I am running Mac OS 10.4.11 on a G-5 iMac. I have a high end Canon CLC color printer/copier. I have spent hours on the phone with Adobe (spoke with guys in 3 different countries) and with Canon. All drivers are

  • Forms and Reports 10g run on the other client machine

    Dear Sir, Please tell me how to run forms/reports which is compiled/build in ORACLE 10g. I mean that I have build some forms and reports in Oracle 10g now I want to run them on another client machine without creating oracle application server. Is the