ICEfaces
  1. ICEfaces
  2. ICE-9907

ace:dialog - Focus is not set to first input on opening of dialog

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01, EE-3.3.0.GA_P02
    • Fix Version/s: 4.0, EE-3.3.0.GA_P03
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      To disable the ICEfaces focus the following ace:ajax tag can be used on the component opening the dialog:

                      <h:commandButton value="Open" id="openBtn"
                                       actionListener="#{testBean.toggleDialog}">
                          <ace:ajax onStart="ice.setFocus(null); return true;" />
                      </h:commandButton>
      Show
      To disable the ICEfaces focus the following ace:ajax tag can be used on the component opening the dialog:                 <h:commandButton value="Open" id="openBtn"                                  actionListener="#{testBean.toggleDialog}">                     <ace:ajax onStart="ice.setFocus(null); return true;" />                 </h:commandButton>

      Description

      When opening an ace:dialog that includes an input element, focus is set momentarily to the input and then it is lost to the underlying component. With the P01 release, this is only an issue when using the visible attribute to show/hide the dialog. Using the widgetVar to show/hide the dialog allows the focus to remain on the dialog input field.

      Note: In testing with the latest code base, it looks like the widgetVar technique is no longer working. Focus is lost to the underlying component.

      The main issue is that the ICEfaces managed focus is setting focus back to the component that opened the dialog. In the case of a dialog it would be better if it had focus instead of a component that can't be used due to a modal layer. Also if this could be configurable that would also be a nice feature to have.

        Issue Links

          Activity

          Arran Mccullough created issue -
          Arran Mccullough made changes -
          Field Original Value New Value
          Attachment Case12706Example.war [ 16783 ]
          Attachment Case12706Example.zip [ 16784 ]
          Ken Fyten made changes -
          Link This issue depends on ICE-9962 [ ICE-9962 ]
          Ken Fyten made changes -
          Assignee Mircea Toma [ mircea.toma ]
          Ken Fyten made changes -
          Fix Version/s 4.0 [ 11382 ]
          Fix Version/s EE-3.3.0.GA_P03 [ 11572 ]
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: