ICEfaces
  1. ICEfaces
  2. ICE-4850

Focus can not be set on inputRichText using application level setFocus API or "focus" attribute on outputBody 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:
      inputRichText + focus

      Description

      Focus can not be set on inputRichText using application level setFocus API or "focus" attribute on outputBody component

        Activity

        Hide
        Adnan Durrani added a comment -

        Fixed:

        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\InputRichTextRenderer.java
        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\InputRichTextRenderer.java
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js
        Completed: At revision: 19179

        Show
        Adnan Durrani added a comment - Fixed: Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\InputRichTextRenderer.java 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\InputRichTextRenderer.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js Completed: At revision: 19179
        Hide
        Joanne Bai added a comment -

        Adnan, is this a duplicate of ICE-4760?

        Show
        Joanne Bai added a comment - Adnan, is this a duplicate of ICE-4760 ?
        Hide
        Ken Fyten added a comment -

        Let's try to implement this feature in a more deterministic manner (aka without using a timer and polling technique).

        Perhaps the component can track it's "readiness" state internally and depending on that either immediately set focus on the edit pane if it's "ready", otherwise set a flag that focus should be set and when the "onReady" event occurs it checks the flag and sets focus if the flag is set (and resets the flag, of course).

        Show
        Ken Fyten added a comment - Let's try to implement this feature in a more deterministic manner (aka without using a timer and polling technique). Perhaps the component can track it's "readiness" state internally and depending on that either immediately set focus on the edit pane if it's "ready", otherwise set a flag that focus should be set and when the "onReady" event occurs it checks the flag and sets focus if the flag is set (and resets the flag, of course).
        Hide
        Adnan Durrani added a comment -

        Removed the polling based technique, used queue mechanism instead.

        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: 19197

        Show
        Adnan Durrani added a comment - Removed the polling based technique, used queue mechanism instead. 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: 19197

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Adnan Durrani
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: