0 Replies Latest reply on Dec 8, 2009 6:52 PM by Bertrand Ungaro

    IE Javascript errors with reRender feature

    Bertrand Ungaro Newbie


      I've got some problems with Internet Explorer. I tried 3 versions of IE : 6, 7 and 8, but still got the same errors.

      Here is my XHTML code :

          <h:panelGrid columns="4" rowClasses="prop">
          <h:outputLabel for="sservice" value="Service" styleClass="name" />
          <h:selectOneMenu id="sdemandeur"  style="width:250px" value="#{addJob.service}" >
           <s:selectItems var="s" value="#{allServices}" label="#{s.nom}" itemValue="#{s.id}" />
           <a4j:support event="onchange" reRender="agent" />
          <h:outputLabel for="agent" value="Agent list" styleClass="name"/>
          <h:selectOneMenu id="agent"  style="width:250px" value="#{addJob.agentDemandeur}" >
           <s:selectItems var="ad" value="#{addJob.calcAgentList}" 
                      label="#{fn:substring(ad.prenom,0,1)}. #{ad.nom}" itemValue="#{ad.id}" />

      So, there is the first selectOneMenu (list of services), which generates the second selectOneMenu (list of agents) by the backing bean AddJob. With Firefox, or Chrome, no problem, but with IE, I've got this javascript error :

      Message : 'elements' has a Null value or is not an object.
      Line : 10
      Caracter : 45
      Code : 0
      URI : http://localhost:8080/myproject/a4j/g/3_3_1.GAorg/ajax4jsf/javascript/scripts/form.js

      And the second selectOneMenu is not generated at all.

      Any ideas ?