| |||||||
| FRAMES NO FRAMES | |||||||
![]() |
The contextual menu faces component allows you to create a pop-up menu on a view faces component. It should be nested inside a view faces component (view).
The contextual menu faces component exposes a menu model that can be specified in two ways:
menu)IlvMenuFactory on its factory attribute<jvf:view
id="view"
style="width:500px;height:300px">
<jvf:contextualMenu
id="contextualMenu"
itemStyleClass="menuItemClass"
itemHighlightedStyleClass="menuItemHighlightedClass"
itemDisabledStyleClass="menuItemDisabledClass">
<jv:menu
label="Menu"
image="images/menu-image.gif">
<jv:menuItem
label="Menu Item 1"
image="images/menu-item-1-image.gif"
onclick="menuItem1Action()"/>
<jv:menuItem
label="Menu Item 2"
image="images/menu-item-2-image.gif"
onclick="menuItem2Action()"/>
<jv:menuItem
label="Menu Item 3"
image="images/menu-item-3-image.gif"
onclick="menuItem3Action()"/>
<jv:menuSeparator />
<jv:menu
label="Sub Menu"
image="images/sub-menu-image.gif">
<jv:menuItem
label="Sub Menu Item 1"
image="images/sub-menu-item-1-image.gif"
onclick="subMenuItem1Action()"/>
<jv:menuItem
label="Sub Menu Item 2"
image="images/sub-menu-item-2-image.gif"
onclick="subMenuItem2Action()"/>
</jv:menu>
</jv:menu>
</jvf:contextualMenu>
</jvf:view> | Tag Information | |
| Tag Class | ilog.views.faces.dhtml.taglib.IlvFacesContextualMenuTag |
| TagExtraInfo Class | None |
| Body Content | JSP |
| Display Name | Contextual Menu |
| Attributes | ||||
| Name | Required | Request-time | Type | Description |
| partialSubmit | false | false | java.lang.String | The partial submit mode. If true, and autoSubmit is also true, this interactor will do a partial submit on the enclosing form on a click event. The partial submit mode is set to false by default. This property is used when the invocation context value is JSF_CONTEXT. |
| binding | false | false | java.lang.String | The value binding expression linking this component to a property in a backing bean. If this attribute is set, the tag does not create the component itself but retrieves it from the bean property. This attribute must be a value binding. |
| factory | false | false | java.lang.String | The factory that will dynamically generate the pop-up menu depending on the graphic object clicked. |
| factoryClass | false | false | java.lang.String | The pop-up menu factory class name. This property is used if, and only if, the factory property is not set. |
| id | false | false | java.lang.String | The id of this component. |
| itemDisabledStyleClass | false | false | java.lang.String | The CSS class name of a disabled menu item. |
| itemHighlightedStyleClass | false | false | java.lang.String | The CSS class name of a highlighted menu item. |
| itemStyleClass | false | false | java.lang.String | The CSS class name of a menu item. |
| objectSelectedFinder | false | false | java.lang.String | The finder instance responsible for retrieving the object selected. |
| baseTextDirection | false | false | java.lang.String | This attribute controls the direction of the text. supported values: LTR, RTL , Contextual |
| Variables | No Variables Defined. |
| |||||||
| FRAMES NO FRAMES | |||||||