Creating Context Menus (continued)
fired, which triggers the pop-up to display. If you associate af:showPopupBehavior with some other noncommand component, such as af:outputText, set triggerType on af:showPopupBehavior to contextMenu, which displays a pop-up context menu. The slide shows a sample code that displays a pop-up menu when users right-click the text rendered by af:outputText. The slide also shows the sample context menu generated at run time.
Note: You can use the same general steps to display a pop-up window that contains any components, not just one that contains a menu.