ICEfaces
  1. ICEfaces
  2. ICE-3720

IE loses focus when tabbing goes beyond currently visible area of screen

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE7

      Description

      When tabbing through the following page structure:

      <inputText><label><selectOneMenu id="1"><label><selectOneMenu id="2">

      <br/><br/>...... // large page break

      //fields not visible on page load
      <selectOneMenu id="3"><inputText>

      All fields have partialSubmit set to true and all tab correctly. IE7 will lose focus when tabbing from selectOneMenu id="2" to selectOneMenu id="3".

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          The removal of this focus code may also be involved with a focus issue in IE, as per ICE-4069.

          Show
          Ken Fyten added a comment - The removal of this focus code may also be involved with a focus issue in IE, as per ICE-4069 .
          Hide
          Mircea Toma added a comment -

          I discovered that the difference in behavior between IE and Firefox is due to our focus preservation mechanism coupled with the difference in behavior of IE compared to Firefox.
          Every time a submit is done the bridge sends the ID of the focused element to the browser. When the server sends back the updates it will append a command that will force the bridge to re-apply the focus back on the submitting element, just in case the focus gets lost due to a larger update.
          In the case of component-showcase's tooltip panel the focus is re-applied on the "Tooltip Panel" command link found in the navigation panels. Because the command link is down at the bottom of the page Firefox will scroll to that focused command link (IE does not scroll to the focused element).
          The onscroll event handler wired previously used to set the focus on the window and also cancel the sending of the focused element. This was a brute force solution to solve the limitations of our focus preservation mechanism.
          Even if we would wire back the onscroll event handler if the "Tooltip Panel" command link would be vertically at the same level with the tooltip panel, thus not having to scroll down to the command link, we would still see this issue occurring.

          Show
          Mircea Toma added a comment - I discovered that the difference in behavior between IE and Firefox is due to our focus preservation mechanism coupled with the difference in behavior of IE compared to Firefox. Every time a submit is done the bridge sends the ID of the focused element to the browser. When the server sends back the updates it will append a command that will force the bridge to re-apply the focus back on the submitting element, just in case the focus gets lost due to a larger update. In the case of component-showcase's tooltip panel the focus is re-applied on the "Tooltip Panel" command link found in the navigation panels. Because the command link is down at the bottom of the page Firefox will scroll to that focused command link (IE does not scroll to the focused element). The onscroll event handler wired previously used to set the focus on the window and also cancel the sending of the focused element. This was a brute force solution to solve the limitations of our focus preservation mechanism. Even if we would wire back the onscroll event handler if the "Tooltip Panel" command link would be vertically at the same level with the tooltip panel, thus not having to scroll down to the command link, we would still see this issue occurring.
          Hide
          Mircea Toma added a comment -

          An easy way to test my findings is to click on the window after clicking "Tooltip Panel" link. This will remove the focus from the link and make the tooltips show up correctly the first time.

          Show
          Mircea Toma added a comment - An easy way to test my findings is to click on the window after clicking "Tooltip Panel" link. This will remove the focus from the link and make the tooltips show up correctly the first time.
          Hide
          Ken Fyten added a comment -

          May be some interactions in IE between these issues, should be reviewed together to ensure any changes will turn out positively for the related issues, etc.

          Show
          Ken Fyten added a comment - May be some interactions in IE between these issues, should be reviewed together to ensure any changes will turn out positively for the related issues, etc.
          Hide
          Mircea Toma added a comment -

          Resolved by the fixes for ICE-4102.

          Show
          Mircea Toma added a comment - Resolved by the fixes for ICE-4102 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Tyler Johnson
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: