ICEfaces
  1. ICEfaces
  2. ICE-7993

JS error in bridge.js when submitting a form with the "enter" key

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0.BETA1, 3.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      IceFaces 3.0.1 with JBoss 7.1.X (tested on both 7.1.0 and 7.1.1), IE8 and FF 10 both showing the same behavior.

      Description

      My page has two forms. The first contains all major input forms. The second serves for small pop-up forms for intermediate choices. Here is the big-picture of my IceFaces page :

      <h:body>
      <ice:form id="contentform">
                       <!-- the main form of the page -->
              </ice:form>
      <ice:form id="popupform">
      <ice:panelPopup visible="#{popUpBean.displayed}">
                              <!-- the content of the pop-up form -->
      </ice:panelPopup>
      </ice:form>
      </h:body>

      When submitting a form with the "enter" key, an error in bridge.js appears. Firefox debug console states :

      Erreur : source is null
      Fichier Source : http://localhost:8080/prest_webgui/javax.faces.resource/bridge.js.jsf?v=11143217
      Ligne : 1893

      The consequence of the error is a complete freeze of the screen. The complete page becomes entirely dead, no action is further performed. The only way of unlocking the web page is to fully refresh the page with an F5 key press.

      This seems to happens in both forms (contentform and popupform). Not sure if it would acts the same if there was only one form in the page.

      This bug was NOT present in 3.0.0 which behave just fine.

        Issue Links

          Activity

          Patrick Mingard created issue -
          Hide
          Stefan Greiner added a comment - - edited

          I get the same error when the action of an ice:inputText is triggered

          <ice:inputText styleClass="input_pieces"
          action="#

          {mainpageManager.addSpecificSearchItemToOrder}"
          value="#{mainpageManager.dataStorage.specificSearchResult.piecesOrdered}"
          binding="#{mainpageManager.focusManager.searchInputFastPieces}"
          onfocus="this.select();"/>

          When I use the command link there's no problem:

          <ice:commandLink action="#{mainpageManager.addSpecificSearchItemToOrder}

          " accesskey="n">
          <ice:graphicImage style="border:none;" value="./_img/warenkorb.gif"/>
          </ice:commandLink>

          Result: the page is frozen and doesn't react on any user input (mouse or keyboard) until a page refresh is done.

          console error: if (source.id != retrieveUpdateFormID(viewIDOf(source))) {
          source is null
          http://.../faces/javax.faces.resource/bridge.js?v=1479079157
          Line 1893

          I haven't had any problems with this before.

          Show
          Stefan Greiner added a comment - - edited I get the same error when the action of an ice:inputText is triggered <ice:inputText styleClass="input_pieces" action="# {mainpageManager.addSpecificSearchItemToOrder}" value="#{mainpageManager.dataStorage.specificSearchResult.piecesOrdered}" binding="#{mainpageManager.focusManager.searchInputFastPieces}" onfocus="this.select();"/> When I use the command link there's no problem: <ice:commandLink action="#{mainpageManager.addSpecificSearchItemToOrder} " accesskey="n"> <ice:graphicImage style="border:none;" value="./_img/warenkorb.gif"/> </ice:commandLink> Result: the page is frozen and doesn't react on any user input (mouse or keyboard) until a page refresh is done. console error: if (source.id != retrieveUpdateFormID(viewIDOf(source))) { source is null http://.../faces/javax.faces.resource/bridge.js?v=1479079157 Line 1893 I haven't had any problems with this before.
          Stefan Greiner made changes -
          Field Original Value New Value
          Link This issue depends on ICE-8058 [ ICE-8058 ]
          Stefan Greiner made changes -
          Link This issue depends on ICE-8058 [ ICE-8058 ]
          Stefan Greiner made changes -
          Link This issue is duplicated by ICE-8058 [ ICE-8058 ]
          Stefan Greiner made changes -
          Comment [ seems to be the same for me ]
          Ken Fyten made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.1 [ 10312 ]
          Fix Version/s 3.1.0.BETA1 [ 10335 ]
          Resolution Fixed [ 1 ]
          Hide
          Patrick Mingard added a comment -

          Still not corrected in the 3.1 beta version. The error message does appear somewhere else but seems to be the consequence of the null "source" variable.

          Error message : "element is null" on line 65.
          This is located in the function :

          function formOf(element)

          { return toLowerCase(element.nodeName) == 'form' ? element : enclosingForm(element); }
          Show
          Patrick Mingard added a comment - Still not corrected in the 3.1 beta version. The error message does appear somewhere else but seems to be the consequence of the null "source" variable. Error message : "element is null" on line 65. This is located in the function : function formOf(element) { return toLowerCase(element.nodeName) == 'form' ? element : enclosingForm(element); }
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Patrick Mingard
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: