ICEfaces
  1. ICEfaces
  2. ICE-9781

ace:confirmationDialog - h:commandButton actionListener not called

    Details

    • Assignee Priority:
      P1
    • Salesforce Case Reference:

      Description

      An ace:confirmationDialog uses an h:commandButton that will hide the dialog and open a new ace:dialog via the onclick event. This commandButton also as an actionListener which is not called when the ace:dialog show() function is called. The dialog is displayed but no update is sent to the server.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000YcM7AAAV
        Hide
        Arran Mccullough added a comment -

        Attached test case to reproduce issue. NOTE: the icefaces ace jar file needs to be added to run war file.

        Steps:

        • Load welcomeICEfaces.jsf
        • Click the Continue button
        • Confirmation dialog is shown.
        • Clock the OK Button, dialog is hidden and processing dialog is shown. The server logs should show a comment "OK Action Called" but this is not the case.
        Show
        Arran Mccullough added a comment - Attached test case to reproduce issue. NOTE: the icefaces ace jar file needs to be added to run war file. Steps: Load welcomeICEfaces.jsf Click the Continue button Confirmation dialog is shown. Clock the OK Button, dialog is hidden and processing dialog is shown. The server logs should show a comment "OK Action Called" but this is not the case.
        Arran Mccullough made changes -
        Attachment Case12578Example.war [ 16634 ]
        Attachment Case12578Example.zip [ 16635 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s 4.0 [ 10770 ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Assignee Priority P1 [ 10010 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39524 Fri Jan 10 10:49:27 MST 2014 art.zambrano ICE-9781 moved show and hide functions into a timeout function, so that the event that triggered the function completes quickly
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/dialog/dialog.js
        Hide
        Arturo Zambrano added a comment -

        r39524: committed fix to 4.0 trunk
        r39525: committed fix to 3.3 EE maintenance branch

        For some unknown reason, calling the jQuery UI function jQuery.dialog('open'), inside the dialog component's show() function, was causing the button click event never to complete and thus no request was being sent to the server. This was fixed by putting the contents of the show function inside a timeout function with a minimal delay, just to allow the triggering event to complete quickly and perform the default action.

        Show
        Arturo Zambrano added a comment - r39524: committed fix to 4.0 trunk r39525: committed fix to 3.3 EE maintenance branch For some unknown reason, calling the jQuery UI function jQuery.dialog('open'), inside the dialog component's show() function, was causing the button click event never to complete and thus no request was being sent to the server. This was fixed by putting the contents of the show function inside a timeout function with a minimal delay, just to allow the triggering event to complete quickly and perform the default action.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: