ICEfaces
  1. ICEfaces
  2. ICE-7976

Problem with SelectInputText focus setting

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03
    • Fix Version/s: EE-1.8.2.GA_P05
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces-EE-1.8.2.GA_P03
    • Assignee Priority:
      P2

      Description

      If there is a SelectInputText and the value is typed manually, after leaving the field by tabulator key, it takes some time and the focus jumps back and forward again.
      While typing now and going fast with Tab to the next field and typing again, some characters end up in first field instead of the second one. The response created by IceFaces contains follow sequenze:
      "Ice.Focus.setFocus('iceform:icepnltabset:0:AutoCmpTxtFace')"
      Which is wrong at this time. I think, there is no reason to set the focus back to the first field in such case.
      Please find the described behavior on your showcase (Autocomplete example) as well happening.
      component-showcase.icesoft.org/component-showcase/showcase.iface

        Activity

        Evgheni Sadovoi created issue -
        Evgheni Sadovoi made changes -
        Field Original Value New Value
        Salesforce Case [5007000000LGYEp]
        Evgheni Sadovoi made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Fix Version/s EE-1.8.2.GA_P05 [ 10331 ]
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] Mircea Toma [ mircea.toma ]
        Hide
        Mircea Toma added a comment -

        The solution we adopted in some of the components that had this kind of focus issue was to invoke setFocus('') function with an empty string or null as parameter. This way the focus retention feature on the server will not send back the focus command back.

        The onblur listener will look like this:

        onblur="setFocus(''); iceSubmit(event, this);"

        Show
        Mircea Toma added a comment - The solution we adopted in some of the components that had this kind of focus issue was to invoke setFocus('') function with an empty string or null as parameter. This way the focus retention feature on the server will not send back the focus command back. The onblur listener will look like this: onblur="setFocus(''); iceSubmit(event, this);"
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ] Arturo Zambrano [ artzambrano ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30851 Fri Sep 14 13:05:48 MDT 2012 art.zambrano ICE-7976 added missing event object to keypress events
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/autocomplete_ext.js
        Hide
        Arturo Zambrano added a comment - - edited

        Original issue is already resolved. Committed fix for different issue at revision 30851. There was a Javascript error occurring whenever typing a character because the event object wasn't being passed to iceSubmit().

        Show
        Arturo Zambrano added a comment - - edited Original issue is already resolved. Committed fix for different issue at revision 30851. There was a Javascript error occurring whenever typing a character because the event object wasn't being passed to iceSubmit().
        Migration made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: