| Advanced Features > Using DHTML-Based JSF Components to Build Web Applications > The JViews Framework Faces Component Set > Adding a Popup Menu |
Adding a Popup Menu |
INDEX
PREVIOUS
NEXT
|
The popup menu component allows you to display a static or contextual popup menu when the application user right-clicks on the view.
As the popup menu is attached to a view, its JSP tag must be enclosed in the JSP tag for the view.
<jvf:view [...] > <jvf:contextualMenu [...]> </jvf:view> |
The popup menu can be contextual or static.
The menu displayed by the popup menu is static and fully on the client side.
To define a menu and menu items use the jv:menu, jv:menuItem, and jv:menuSeparator tags.
The popup menu is dynamically generated on the server side by a menu factory depending on:
menuModelId property of the current interactor set on the view.
To specify the factory use the factory or the factoryClass tag attribute of the contextual popup menu tag.
<jvf:contextualMenu factory="#{bean.factory}"/> <jvf:contextualMenu factoryClass="com.xyz.demo.DemoFactory"/> |
The factory must implement the IlvMenuFactory interface.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |