ICEfaces
  1. ICEfaces
  2. ICE-9410

ice:selectInputText - forces focus on itself after focus was moved to another element

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA
    • Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE9, FF, Chrome
    • Assignee Priority:
      P1
    • Salesforce Case Reference:

      Description

      The new feature focus management feature (ICE-8795) still applies focus when a facet is wrapped around a nested panelGrid.

      <ice:selectInputText
      id="field3"
      value="#{focusdemo.field3}"
      valueChangeListener="#{focusdemo.keyPressed}"
      listVar="testlist" rows="15"
      listValue="#{focusdemo.testList}">
      <f:facet name="selectInputText">
      <ice:panelGrid columns="1">
      <ice:outputText id="test" value="#{testlist}" />
      </ice:panelGrid>
      </f:facet>
      </ice:selectInputText>

      I've looked at the rendered markup but do not see any focus specific code.

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000TxMgqAAF
        Tyler Johnson made changes -
        Attachment sf-12250.war [ 16111 ]
        Tyler Johnson made changes -
        Environment IE9 IE9, FF, Chrome
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Fix Version/s EE-3.3.0.GA_P01 [ 11174 ]
        Fix Version/s 3.4 [ 10770 ]
        Assignee Priority P1 [ 10010 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36638 Thu Jul 11 12:36:33 MDT 2013 mircea.toma ICE-9410 Apply focus back on the input element corresponding to the autocomplete component only when the focus is lost, that is when activeElement os null or focus is set on the body element.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/src/main/javascript/extras/extras.js
        Hide
        Mircea Toma added a comment -

        This is issue is not the result of a ICE-8795 regression. It is an issue specific to the autocomplete component. The Autocompleter.updateNow function is invoked when the inline script sent along with the update is evaluated. Eventually the function will apply programmatically the focus on the input element rendered by the component. When a fast tabbing is executed the update arrives after the focus has moved to the next/previous component and thus focus is moved back to the input element.

        The chosen solution was to re-apply focus back on the input element corresponding to the autocomplete component only when the focus is lost, that is when document.activeElement is null or focus is set on the body element.

        Show
        Mircea Toma added a comment - This is issue is not the result of a ICE-8795 regression. It is an issue specific to the autocomplete component. The Autocompleter.updateNow function is invoked when the inline script sent along with the update is evaluated. Eventually the function will apply programmatically the focus on the input element rendered by the component. When a fast tabbing is executed the update arrives after the focus has moved to the next/previous component and thus focus is moved back to the input element. The chosen solution was to re-apply focus back on the input element corresponding to the autocomplete component only when the focus is lost, that is when document.activeElement is null or focus is set on the body element.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Summary Focus management not disable when facet tag used in selectInputText ice:selectInputText - forces focus on itself after focus was moved to another element
        Ken Fyten made changes -
        Component/s Components [ 10012 ]
        Component/s Bridge [ 10011 ]
        Hide
        Ken Fyten added a comment -

        Note that this fix commit is confirmed included on the http://10.18.39.25:8888/svn/ossrepo/icefaces-ee/tags/icefaces-ee-3.3.0.GA_P01 branch at svn rvn#36637.

        Show
        Ken Fyten added a comment - Note that this fix commit is confirmed included on the http://10.18.39.25:8888/svn/ossrepo/icefaces-ee/tags/icefaces-ee-3.3.0.GA_P01 branch at svn rvn#36637.
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: