ICEfaces
  1. ICEfaces
  2. ICE-1371

requestFocus fails for ice:inputText on IE7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.3
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      INFO:
      ICEsoft Technologies, Inc.
      ICEfaces 1.5.3 Doppelganger patch
      Build number: 1
      Revision: 2007.03.10
      Facelets
      Tomcat 5.5. Win

      synchronousUpdates=true

      Description

      to repro:

      1.open focus.xhtml using IE7 (attached)
      2.open JS debug console
      3. click on "show input" link
      4. input text field appears, but focus is not acquired //ERROR
      5. click 'hide input'' JS console says "cannot set focus..." (see jsconsole.txt attached)
      1. jconsole.txt
        4 kB
        dukehoops
      2. focus.xhtml
        2 kB
        dukehoops
      3. web.xml
        3 kB
        dukehoops
      4. faces-config.xml
        2 kB
        dukehoops
      5. FocusBean.java
        1 kB
        dukehoops

        Activity

        Hide
        dukehoops added a comment -

        JS console displaying error:

        error [window] : Failed to set focus on [_id7:_id11]cannot find element with id: '_id7:_id11'

        when inputText is hidden

        Show
        dukehoops added a comment - JS console displaying error: error [window] : Failed to set focus on [_id7:_id11] cannot find element with id: '_id7:_id11' when inputText is hidden
        Hide
        dukehoops added a comment -

        forgot java src

        Show
        dukehoops added a comment - forgot java src
        Hide
        Philip Breau added a comment -

        The focus not being set is reproducible when the component is going from an unrendered to a rendered state on the same lifecycle pass. Although I don't receive the console error that the element cannot be found. The console states that the focus succeeded which isn't true:

        17/03/2007 11:44:9 debug [window] : Focus Set on [_id7:_id12]

        Show
        Philip Breau added a comment - The focus not being set is reproducible when the component is going from an unrendered to a rendered state on the same lifecycle pass. Although I don't receive the console error that the element cannot be found. The console states that the focus succeeded which isn't true: 17/03/2007 11:44:9 debug [window] : Focus Set on [_id7:_id12]
        Hide
        Philip Breau added a comment -

        dup of 1247

        Show
        Philip Breau added a comment - dup of 1247

          People

          • Assignee:
            Unassigned
            Reporter:
            dukehoops
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: