4 Replies Latest reply on May 15, 2007 2:43 PM by Alexander Smirnov

    Out of memory error in IE

    Adrian Mitev Master

      Hi. I have the following code

      <t:dataTable id="containers" value="#{goodsItemIE518.containers}"
       var="GIContainers" styleClass="normalText" border="1"
       cellspacing="0" cellpadding="0" rowIndexVar="rowIndex">
       <t:column>
       <f:facet name="header">?????</f:facet>
      
       <h:inputText id="container"
       styleClass="#{(GIContainers.available) ? ((GIContainers.changed) ? 'redText' : '') : 'strikeText'}"
       size="5" maxlength="17" value="#{GIContainers.containerNumber}">
       <a4j:support event="onchange" ajaxSingle="true"
       reRender="containers"
       actionListener="#{controlResultsController.updateValue}">
       <a4j:actionparam name="rowIndex" value="#{rowIndex}" />
       <a4j:actionparam name="changeTable" value="containers" />
       </a4j:support>
       <f:validateLength maximum="17" />
       </h:inputText>
       </t:column>
       <t:column>
       <f:facet name="header">??? ?? ?????????</f:facet>
      
       <h:inputText size="5" maxlength="17"
       styleClass="#{(GIContainers.available) ? ((GIContainers.changed) ? 'redText' : '') : 'strikeText'}"
       value="#{GIContainers.containerNumber}">
       <f:validateLength maximum="17" />
       </h:inputText>
       </t:column>
       <t:column>
       <f:facet name="header">
       <a4j:commandLink immediate="true"
       action="#{controlResultsController.addRow}"
       reRender="containers">
       <h:graphicImage style="border: none" value="/images/plus.gif" />
       <a4j:actionparam name="plusTable" value="containers"></a4j:actionparam>
       </a4j:commandLink>
       </f:facet>
      
       <a4j:commandLink reRender="containers" immediate="true"
       style="text-decoration : none"
       action="#{controlResultsController.removeElement}">
       <h:graphicImage style="border: none;" value="/images/minus.gif" />
       <a4j:actionparam name="rowIndex" value="#{rowIndex}"></a4j:actionparam>
       <a4j:actionparam name="minusTable" value="containers"></a4j:actionparam>
       </a4j:commandLink>
       </t:column>
       </t:dataTable
      


      When the onchange in the a4j:support occur the browser (IE) shows a message "Out of memory at line: 98" and the whole page breaks - anywhere i click shows this message. The problem occur in both IE6 and IE7

      On Firefox with Firebug this error message is shown:

      too much recursion:
      onkeyup(keyup charCode=0, keyCode=51)org.ajax4jsf.fram... (line 97)
      onkeyup(keyup charCode=0, keyCode=51)org.ajax4jsf.fram... (line 97)
      onkeyup(keyup charCode=0, keyCode=51)org.ajax4jsf.fram... (line 97)
      onkeyup(keyup charCode=0, keyCode=51)org.ajax4jsf.fram... (line 97)
      onkeyup(keyup charCode=0, keyCode=51)
      ..... many times