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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [50070000009Mnig]
        Arran Mccullough made changes -
        Attachment Case8512Example2.war [ 11880 ]
        Deryk Sinotte made changes -
        Fix Version/s 1.8.2 [ 10190 ]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Ken Fyten [ ken.fyten ]
        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?
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ] Adnan Durrani [ adnan.durrani ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19178 Thu Aug 20 13:14:55 MDT 2009 adnan.durrani Fix for ICE-4760 (inputRichtext overrides any set focus code on load of component)
        inputrichtext does not steal focus anymore
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputrichtext/fckeditor_ext.js
        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
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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)
        Joanne Bai made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        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,
        Adnan Durrani made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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
        Arran Mccullough made changes -
        Salesforce Case [50070000009Mnig] [50070000009Mnig, 5007000000A60uG]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19943 Thu Dec 10 14:01:36 MST 2009 adnan.durrani 1.8.2EE inputRichText changes moved to Compat inputRichText towards ICE-4481. The changes include the fix of following JIRAs ICE-4495, ICE-4424, ICE-3965, ICE-4698, ICE-4760, ICE-4850, ICE-4758, ICE-4961
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/fckeditor_ext.js
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/fckeditor.zip
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/InputRichTextRenderer.java
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2

          People

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

            Dates

            • Created:
              Updated:
              Resolved: