JViews Framework
Tag contextualMenu


Contextual Menu Faces Component

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:

Usage

<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>

DHTML - JavaScript Types

IlvFacesContextualMenuProxy

JSF Component Class

IlvFacesContextualMenu



Tag Information
Tag Classilog.views.faces.dhtml.taglib.IlvFacesContextualMenuTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameContextual Menu

Attributes
NameRequiredRequest-timeTypeDescription
partialSubmitfalsefalsejava.lang.StringThe 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.
bindingfalsefalsejava.lang.StringThe 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.
factoryfalsefalsejava.lang.StringThe factory that will dynamically generate the pop-up menu depending on the graphic object clicked.
factoryClassfalsefalsejava.lang.StringThe pop-up menu factory class name. This property is used if, and only if, the factory property is not set.
idfalsefalsejava.lang.StringThe id of this component.
itemDisabledStyleClassfalsefalsejava.lang.StringThe CSS class name of a disabled menu item.
itemHighlightedStyleClassfalsefalsejava.lang.StringThe CSS class name of a highlighted menu item.
itemStyleClassfalsefalsejava.lang.StringThe CSS class name of a menu item.
objectSelectedFinderfalsefalsejava.lang.StringThe finder instance responsible for retrieving the object selected.
baseTextDirectionfalsefalsejava.lang.StringThis attribute controls the direction of the text. supported values: LTR, RTL , Contextual

Variables
No Variables Defined.


© Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.