1 Reply Latest reply: Nov 10, 2012 12:38 PM by Alejandro Profet RSS

    I need to hide a popup with custom buttons

    veenapandit
      When they click the button I want t he popup to cancel. THe button invokes a background process. How do I achieve this?
      The button has the download listener on it.
        • 1. Re: I need to hide a popup with custom buttons
          Alejandro Profet
          Hi,

          You can bind the popup to the managed bean who invokes the process:
          ...
          RichPopup popup;
          public RichPopup getPopup() {
            return popup;
          }
          public void setPopup(RichPopup popup) {
            this.popup = popup;
          }
          ...
          And then put this code in the action listener:
          public void invokeProcess(ActionEvent actionEvent) {
            ...
            popup.hide();
            ...
          }
          Hope this helps.

          AP