Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces-EE ACE Components
Tag menuItem

MenuItem is used by various menu components

For more information, see the MenuItem Wiki Documentation.

Client Events
Name | Description | Supported classes for argument
activate | Triggers when the menu item is clicked or selected by any other means. | javax.faces.event.AjaxBehaviorEvent

Client events can be used with Client Behaviors and the ace:ajax tag.

Tag Information
Tag Class | org.icefaces.ace.component.menuitem.MenuItemTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
accesskey | no | true | `java.lang.String` | Access key that, when pressed, activates this component.
action | no | true | `javax.el.MethodExpression` | MethodExpression representing the application action to invoke when this component is activated by the user. The expression must evaluate to a public method that takes no parameters, and returns an Object (the toString() of which is called to derive the logical outcome) which is passed to the NavigationHandler for this application.
actionListener | no | true | `javax.el.MethodExpression` | MethodExpression representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void, or to a public method that takes no arguments with a return type of void. In the latter case, the method has no way of easily knowing where the event came from, but this can be useful in cases where a notification is needed that "some action happened".
binding | no | true | `javax.el.ValueExpression` | Using an EL expression, bind the component reference to a bean property, so that the component may be accessed in the bean.
disabled | no | true | `boolean` | Boolean value to disable/enable the menu item. The menu item will still be shown but with different styling, and clicking on it will not trigger any action.
helpText | no | true | `java.lang.String` | Text to display additional information. The text appears as a standard browser tooltip.
icon | no | true | `java.lang.String` | Path of the menuitem image.
id | no | true | `java.lang.String` | The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
immediate | no | true | `boolean` | Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase. Default = 'false'.
onclick | no | true | `java.lang.String` | Javascript event handler for click event. If this function explicitly returns 'false', then the request to the server will be cancelled.
rendered | no | true | `boolean` | Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. Default = 'true'.
style | no | true | `java.lang.String` | Style of the menuitem label.
styleClass | no | true | `java.lang.String` | StyleClass of the menuitem label.
target | no | true | `java.lang.String` | Target type of url navigation.
url | no | true | `java.lang.String` | Url to be navigated when menuitem is clicked.
urlEncoding | no | true | `java.lang.String` | Specifies the encoding type for value of the 'url' attribute. Possible values are "resource", "action", "partialaction", "bookmarkable", "redirect", and "none". For all encodings other than "resource" and "none" the URL must be relative to the context path and must start with '/'. For external links and to render the value of the 'url' attribute unmodified use "none". Default = 'resource'.
urlParameters | no | true | `java.util.Map` | Specifies an optional map of parameters to use when encoding URLs of the "bookmarkable" and "redirect" types. The value of this attribute must evaluate to an object of type Map>.
value | no | true | `java.lang.Object` | The current value of the simple component.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.