How can I create <af:showPopupBehavior> programmatically in my managedBean?
Let's say I have a commandMenuItem:
<af:commandMenuItem text="Delete" id="cmi3">
I want to create this commandMenuItem in my managedBean. How can I add the showPopupBehavior to it?
in your managed bean create a Actionlistener method for command menu item , in that method add the following code
RichPopup.PopupHints ph = new RichPopup.PopupHints(); yourpopupname.show(ph);
This will show popup when your Commandmenu item is clicked
Note: yourpopupname is the popup binding created in the managed bean