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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45847 Thu Aug 13 12:15:20 MDT 2015 mircea.toma ICE-10703 Remove setTimeout used for caret positioning when input mask gains focus.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/maskedentry/maskedentry.js

          People

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

            Dates

            • Created:
              Updated:
              Resolved: