JViews Framework
Tag contextualMenu


Contextual Menu Faces Component

The contextual menu faces component allows you to create a popup 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
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 popup menu depending on the graphic object clicked.
factoryClassfalsefalsejava.lang.StringThe popup 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.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.   Documentation homepage.