ICEfaces
  1. ICEfaces
  2. ICE-10703

ace:maskedEntry focus problem when multiple components are used on page (Firefox, Chrome)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-4.0.0.GA
    • Fix Version/s: 4.1
    • Component/s: ACE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces EE- 4.0.0.GA
      Browsers: Firefox 34/36, Chrome43
      Server: Tomcat7
      Windows 7

      Description

      There's some sort of focus problem when multiple ace:maskedEntry fields are used in a page. Go to the showcase demo for it,

      http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=maskedEntryBean

      Click on the first masked field, Date of birth. Move the focus to a different application window (e.g., Alt-Tab elsewhere). Now click in a DIFFERENT masked field, e.g., Mobile Phone. The 2 fields will fight for the focus; the masks flicker on and off indefinitely. Console monitor shows a continuous stream like:

      [window] [Thu, 28 May 2015 22:31:42 GMT] persisted focus for element "form:workPhoneInput_field"
      bridge-support.js.jsf?ln=ice.core&v=4_0_0_150512:1807
      [window] [Thu, 28 May 2015 22:31:42 GMT] persisted focus for element "form:dobInput_field"
      bridge-support.js.jsf?ln=ice.core&v=4_0_0_150512:1807
      [window] [Thu, 28 May 2015 22:31:42 GMT] persisted focus for element "form:workPhoneInput_field"

      (At this point, if you click on the other masked fields, you can get all 4 fields flickering!)

      The problem does NOT occur if you simply Alt-Tab back to the browser, or if you click on the same field that had the focus when you Alt-Tab'd away. System is Windows 7 Pro. Failed on Chrome 42.0.2311.135 m and Firefox 36.0.1. - See more at: http://www.icesoft.org/JForum/posts/list/22916.page#80165

        Activity

        Hide
        Ken Fyten added a comment -

        Note that I could not reproduce this on OS X using Cmd-Tab to switch between application windows, might be limited to Windows.

        Show
        Ken Fyten added a comment - Note that I could not reproduce this on OS X using Cmd-Tab to switch between application windows, might be limited to Windows.
        Hide
        Mircea Toma added a comment -

        Remove setTimeout used for caret positioning when input mask gains focus. This seems to solve the oscillation problem.

        Show
        Mircea Toma added a comment - Remove setTimeout used for caret positioning when input mask gains focus. This seems to solve the oscillation problem.
        Hide
        Ken Fyten added a comment -

        Carmen, please verify on IE8, IE9, and IE10 as well.

        Show
        Ken Fyten added a comment - Carmen, please verify on IE8, IE9, and IE10 as well.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: