2 Replies Latest reply: Feb 5, 2013 1:23 AM by 934032 RSS

    creating <af:showPopupBehavior> programmatically

    Shahe
      Hello,

      How can I create <af:showPopupBehavior> programmatically in my managedBean?

      Let's say I have a commandMenuItem:

      <af:commandMenuItem text="Delete" id="cmi3">
      <af:showPopupBehavior popupId="p2"/>
      </af:commandMenuItem>

      I want to create this commandMenuItem in my managedBean. How can I add the showPopupBehavior to it?

      Thanks
      Shahe