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

        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);"
        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().

          People

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

            Dates

            • Created:
              Updated:
              Resolved: