ICEfaces
  1. ICEfaces
  2. ICE-11138

Ajax close event not fired for ace:dialog

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Windows 7 Professional Service Pack 1, Java 1.8.0_66

      Description

      The Ajax close event for ace:dialogs is not working.

      {code}
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:ace="http://www.icefaces.org/icefaces/components"
            xmlns:c="http://java.sun.com/jsp/jstl/core"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:ui="http://java.sun.com/jsf/facelets">
      <h:head>
          <h:outputScript library="javax.faces" name="jsf.js" />
      </h:head>
      <h:body>
          <f:view>
              <h:form id="testForm">
              
                  <ace:dialog id="testDialog" header="Test"
                              closable="true" modal="true"
                              resizable="false" >
                              
                      <ace:ajax event="close"
                                onStart="alert('close'); return false"/>
                      
                      <h:panelGroup layout="block">
                          <h:outputText value="Test" />
                      </h:panelGroup>
                      <h:panelGroup layout="block">
                          <input type="button" value="Close"
                                 onclick="ice.ace.instance('testForm:testDialog').hide()"/>
                      </h:panelGroup>
                  </ace:dialog>
              
                  <input type="button" value="Show"
                         onclick="ice.ace.instance('testForm:testDialog').show()"/>
              
              </h:form>
          </f:view>
      </h:body>
      </html>
      {code}

        Activity

        Hide
        Chris Baumgartner added a comment -

        Please close this issue. The close event is working when the "X" button is pressed. I was assuming it would also be fired when the dialog was hidden. Sorry for the confusion.

        Show
        Chris Baumgartner added a comment - Please close this issue. The close event is working when the "X" button is pressed. I was assuming it would also be fired when the dialog was hidden. Sorry for the confusion.

          People

          • Assignee:
            Unassigned
            Reporter:
            Chris Baumgartner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: