ICEfaces
  1. ICEfaces
  2. ICE-9864

ice:selectInputText - Action method called twice on enter key press in IE8/9

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P02
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE8, IE9
    • Assignee Priority:
      P2

      Description

      When using the enter key to select an option for the ice:selectInputText, it's actionListener method is called twice.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows issue. The icefaces-*.jar files need to be added back into the war file.

        Steps:

        • Load welcomeICEfaces.jsf In IE8/9 or IE10/11 using IE8/9 document/browser mode.
        • In the input field, enter "bb"
        • Using the keyboard, use the arrow key to highlight an option and the enter key to select.
        • Two logs should be seen in the server output related to the action method.
        Show
        Arran Mccullough added a comment - Attached test case that shows issue. The icefaces-*.jar files need to be added back into the war file. Steps: Load welcomeICEfaces.jsf In IE8/9 or IE10/11 using IE8/9 document/browser mode. In the input field, enter "bb" Using the keyboard, use the arrow key to highlight an option and the enter key to select. Two logs should be seen in the server output related to the action method.
        Hide
        Arran Mccullough added a comment -

        Looking at the network traffic I can see two requests being sent on enter key. One for a keypress event and another for a keyup event.

        Show
        Arran Mccullough added a comment - Looking at the network traffic I can see two requests being sent on enter key. One for a keypress event and another for a keyup event.
        Hide
        Mircea Toma added a comment -

        The fix makes sure to stop the 'keypress' event from bubbling up to the form, a 'keyup' event listener is already registered with the element when running in IE.

        Show
        Mircea Toma added a comment - The fix makes sure to stop the 'keypress' event from bubbling up to the form, a 'keyup' event listener is already registered with the element when running in IE.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: