ICEfaces
  1. ICEfaces
  2. ICE-4760

inputRichtext overrides any set focus code on load of component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      The inputRichText component, when loaded on a page, gets focus set to it even though other components are having focus set through either the outputBody focus attribute or through component binding's requestFocus() method.

        Activity

        Hide
        Ken Fyten added a comment -

        Couldn't we just remove the self-focus behavior from the inputRichText component? Maybe add a new attribute to disable it?

        Show
        Ken Fyten added a comment - Couldn't we just remove the self-focus behavior from the inputRichText component? Maybe add a new attribute to disable it?
        Hide
        Adnan Durrani added a comment -

        inputRichText doesn't steal focus anymore.

        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js
        Completed: At revision: 19178

        Show
        Adnan Durrani added a comment - inputRichText doesn't steal focus anymore. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js Completed: At revision: 19178
        Hide
        Joanne Bai added a comment -

        Tested on ICEfaces trunk revision 19184 + Tomcat 6.0

        • tested successfully on FF3.5, Opera9.64
        • however, when testing on IE 6 and 7, focus can be set through the outputBody focus attribute, but not the binding's requestFocus() method.

        Test app added to repo\qa\trunk\Regression\ICE-4760. In the test application, Test button is the one gets focus after loading (set by outputBody focus), and by clicking the Request Focus button (through requestFocus() method)

        Show
        Joanne Bai added a comment - Tested on ICEfaces trunk revision 19184 + Tomcat 6.0 tested successfully on FF3.5, Opera9.64 however, when testing on IE 6 and 7, focus can be set through the outputBody focus attribute, but not the binding's requestFocus() method. Test app added to repo\qa\trunk\Regression\ ICE-4760 . In the test application, Test button is the one gets focus after loading (set by outputBody focus), and by clicking the Request Focus button (through requestFocus() method)
        Hide
        Adnan Durrani added a comment -

        Comments are invalid for this case, the IE6, IE7 issue has nothing to do with inputRichText component, you can see the same behaviour even if you remove the inputRichText from the page. Please create a separate JIRA, mentioning which component doesn't work with request focus.

        Thanks,

        Show
        Adnan Durrani added a comment - Comments are invalid for this case, the IE6, IE7 issue has nothing to do with inputRichText component, you can see the same behaviour even if you remove the inputRichText from the page. Please create a separate JIRA, mentioning which component doesn't work with request focus. Thanks,
        Hide
        Joanne Bai added a comment -

        ICE-4870 is created for the IE requestFocus() not working issue

        Show
        Joanne Bai added a comment - ICE-4870 is created for the IE requestFocus() not working issue

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: