Thursday 5 January 2017

Programmatically showing the Popup in ADF

Programmatically showing the Popup in ADF 


You have to display the popup on click of some button. Drag drop the af:popup in the page and bind the popup in the managed bean like screenshot
On the button , write a method on the action event.


public void ShowPopup(ActionEvent actionEvent) {
          RichPopup.PopupHints hints = new RichPopup.PopupHints();
          this.getPopUp().show(hints);
 }
If you want to hide the popup..you can write like this
public void HidePopup(ActionEvent actionEvent) {
           RichPopup.PopupHints hints = new RichPopup.PopupHints();
           this.getPopUp().hide();
  }

No comments:

Post a Comment

Contact Me

Name

Email *

Message *