ICEfaces
  1. ICEfaces
  2. ICE-10870

ice:inputTextArea focus is lost/interrupted w/ dynamic include

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P08
    • Fix Version/s: EE-1.8.2.GA_P09
    • Component/s: Framework, ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 1.8, Firefox, IE11

      Description

      When a page, that has input fields, is dynamically included, focus is lost/interrupted when tabbing through the fields.

      In the provided test case it has a form which includes commandLinks that change a ui:include. The content that is included after a click of the links has a form that has an ice:inputTextarea and an ice:inputText.

      The form that includes the inputs has partialSubmit="true" set on it. The inputTextarea also uses require="true".

      Upon including this content page and tabbing out of the inputTextarea field without adding anything the required validation is thrown. Focus should be set on the inputText field but it is placed on the commandLink that includes the content.

      Looking at the ice.focus parameter it is set to this on the request sent when tabbing out of the text area field.

      This is reproducible on Firefox and IE11. It works fine in Chrome. It also works fine if you replace the ice:inputTextarea with an ice:inputText component.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49388 Wed Oct 19 14:37:37 MDT 2016 mircea.toma ICE-10870 Complete focus retention fix by clearing out the recorded focus on blur.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/TextareaRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49364 Thu Oct 13 12:08:10 MDT 2016 mircea.toma ICE-10870 Record text area's focus so that the focus retention will apply focus back on the submitting element.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/TextareaRenderer.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: