ICEfaces
  1. ICEfaces
  2. ICE-5958

selectInputText options menu "flickers" on first display in IE

    Details

    • Assignee Priority:
      P1
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use the rendered attribute to show/hide the popup.

      Description

      When using a selectInputText in a modal panelPopup and using visible to show/hide the popup. The option list flickers (type in text, option list is displayed for half a second, then is gone) on its first display in IE. This happens only on the first entry of text into the text field.

      The following are required to reproduce the issue:
       - Use of IE browser.
       - Use of visible attribute for panelPopup.
       - Modal panelPopup

        Activity

        Hide
        Arturo Zambrano added a comment -

        A fix for this issue was committed under ICE-8706.

        It wasn't reproducible on the 1.8 trunk.

        Show
        Arturo Zambrano added a comment - A fix for this issue was committed under ICE-8706. It wasn't reproducible on the 1.8 trunk.
        Hide
        Cruz Miraback added a comment - - edited

        Issue is still present. Tested in IE6/7/8/9/10 using ICEfaces EE 1.8.2.GA_P07 build2.

        Show
        Cruz Miraback added a comment - - edited Issue is still present. Tested in IE6/7/8/9/10 using ICEfaces EE 1.8.2.GA_P07 build2.
        Hide
        Cruz Miraback added a comment -

        Attached war file so that the issue can be easily reproduced.

        Show
        Cruz Miraback added a comment - Attached war file so that the issue can be easily reproduced.
        Hide
        Arturo Zambrano added a comment - - edited

        Committed fix at revision 36998.

        The cause of the problem in IE is that unlike other browsers a blur event was being triggered when typing the first character after the popup becomes visible. What made things more difficult is that the onblur event seemed to be triggered before the onkeypress event.

        Different approaches were tried to fix this issue, including executing the onblur event with a delay, in order to allow the onkeypress event set a flag and prevent the execution of the onblur event. Also, instead of timeouts, an approach comparing timestamps was tried. The event objects were also examined t try to find out differences between a real onblur event and the fake one, but it wasn't possible to determine this. The event objects for the onkeypress and onblur events were also different objects, with different timestamps, so it wasn't possible to determine when the onblur event was artificially triggered.

        The solution consisted in adding a flag in the onkeypress event and allowing a delay of 500 ms to check in the onblur event whether it should be executed or not. This is only done on IE browsers when there's a modal frame running.

        Show
        Arturo Zambrano added a comment - - edited Committed fix at revision 36998. The cause of the problem in IE is that unlike other browsers a blur event was being triggered when typing the first character after the popup becomes visible. What made things more difficult is that the onblur event seemed to be triggered before the onkeypress event. Different approaches were tried to fix this issue, including executing the onblur event with a delay, in order to allow the onkeypress event set a flag and prevent the execution of the onblur event. Also, instead of timeouts, an approach comparing timestamps was tried. The event objects were also examined t try to find out differences between a real onblur event and the fake one, but it wasn't possible to determine this. The event objects for the onkeypress and onblur events were also different objects, with different timestamps, so it wasn't possible to determine when the onblur event was artificially triggered. The solution consisted in adding a flag in the onkeypress event and allowing a delay of 500 ms to check in the onblur event whether it should be executed or not. This is only done on IE browsers when there's a modal frame running.
        Hide
        Arturo Zambrano added a comment -

        Committed fix to 3.3 EE P01 tag at revision 37011.

        Show
        Arturo Zambrano added a comment - Committed fix to 3.3 EE P01 tag at revision 37011.
        Hide
        Arturo Zambrano added a comment -

        Committed fix to 1.8.2 EE P07 tag at revision 37016.

        Show
        Arturo Zambrano added a comment - Committed fix to 1.8.2 EE P07 tag at revision 37016.
        Hide
        Arturo Zambrano added a comment -

        Increased the delay in ie7/8 to 700 ms, at revision 37022.

        Show
        Arturo Zambrano added a comment - Increased the delay in ie7/8 to 700 ms, at revision 37022.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: