JViews Core
Tag menuItem


Menu Item Auxiliary Component

The menu item auxiliary component allows you to define a menu item in a menu model. The menu item should be nested inside a menu auxiliary component (menu).

Usage

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

DHTML - JavaScript Types

IlvMenuItem

Server Side Class

IlvMenuItem



Tag Information
Tag Classilog.views.faces.taglib.IlvFacesMenuItemTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameMenu Item

Attributes
NameRequiredRequest-timeTypeDescription
actionListenerfalsefalsejava.lang.StringAn action listener
enabledfalsefalsejava.lang.StringIf the pop-up is not enabled, it's rendered differently and its attached action cannot be triggered.
idfalsefalsejava.lang.StringThe id of this menu, used in action listeners to determine which menu item was triggered.
imagefalsefalsejava.lang.StringAn optional image.
invocationContextfalsefalsejava.lang.StringThe invocation context of the valueChangeListener. Valid values are JSF_CONTEXT and IMAGE_SERVLET_CONTEXT. In JSF_CONTEXT mode, the page is submitted to trigger the JSF lifecycle. In IMAGE_SERVLET_CONTEXT mode, the value change listener is invoked in the image generating servlet, just before the image generation. So the listener can only access to the graphic component that generates the image and not to the JSF components that are not refreshed.
labelfalsefalsejava.lang.StringThe label of this menu item.
onclickfalsefalsejava.lang.StringThe JavaScript action executed when the button is clicked.
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.