t
Tag commandButton


Extends standard commandButton by user role support. Unless otherwise specified, all attributes accept static values or EL expressions.


Tag Information
Tag Classorg.apache.myfaces.taglib.html.ext.HtmlCommandButtonTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsefalsejava.lang.StringThe developer-assigned ID of this component. The ID must be unique within the scope of the tag's enclosing naming container (e.g. h:form or f:subview). This value must be a static value.
bindingfalsefalsejava.lang.StringIdentifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
renderedfalsefalsejava.lang.StringA boolean value that indicates whether this component should be rendered. Default value: true.
immediatefalsefalsejava.lang.StringA boolean value that identifies the phase during which action events should fire. During normal event processing, action methods and action listener methods are fired during the "invoke application" phase of request processing. If this attribute is set to "true", these methods are fired instead at the end of the "apply request values" phase.
actionfalsefalsejava.lang.StringA method binding EL expression that identifies an action method to be invoked if this component is activated by the user. An action method accepts no parameters and has a String return value, called the action outcome, that identifies the next view displayed. The phase that this event is fired in can be controlled via the immediate attribute.
actionListenerfalsefalsejava.lang.StringA method binding EL expression that identifies an action listener method to be invoked if this component is activated by the user. An action listener method accepts a parameter of type javax.faces.event.ActionEvent and returns void. The phase that this event is fired in can be controlled via the immediate attribute.
valuefalsefalsejava.lang.StringThe initial value of this component.
dirfalsefalsejava.lang.StringHTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
langfalsefalsejava.lang.StringHTML: The base language of this document.
stylefalsefalsejava.lang.StringHTML: CSS styling instructions.
titlefalsefalsejava.lang.StringHTML: An advisory title for this element. Often used by the user agent as a tooltip.
styleClassfalsefalsejava.lang.StringThe CSS class for this element. Corresponds to the HTML 'class' attribute.
onclickfalsefalsejava.lang.StringHTML: Script to be invoked when the element is clicked.
ondblclickfalsefalsejava.lang.StringHTML: Script to be invoked when the element is double-clicked.
onmousedownfalsefalsejava.lang.StringHTML: Script to be invoked when the pointing device is pressed over this element.
onmouseupfalsefalsejava.lang.StringHTML: Script to be invoked when the pointing device is released over this element.
onmouseoverfalsefalsejava.lang.StringHTML: Script to be invoked when the pointing device is moved into this element.
onmousemovefalsefalsejava.lang.StringHTML: Script to be invoked when the pointing device is moved while it is in this element.
onmouseoutfalsefalsejava.lang.StringHTML: Script to be invoked when the pointing device is moves out of this element.
onkeypressfalsefalsejava.lang.StringHTML: Script to be invoked when a key is pressed over this element.
onkeydownfalsefalsejava.lang.StringHTML: Script to be invoked when a key is pressed down over this element.
onkeyupfalsefalsejava.lang.StringHTML: Script to be invoked when a key is released over this element.
accesskeyfalsefalsejava.lang.StringHTML: Sets the access key for this element.
altfalsefalsejava.lang.StringHTML: Specifies alternative text that can be used by a browser that can't show this element.
disabledfalsefalsejava.lang.StringHTML: When true, this element cannot receive focus.
onblurfalsefalsejava.lang.StringHTML: Specifies a script to be invoked when the element loses focus.
onfocusfalsefalsejava.lang.StringHTML: Specifies a script to be invoked when the element receives focus.
onselectfalsefalsejava.lang.StringHTML: Specifies a script to be invoked when the element is selected.
onchangefalsefalsejava.lang.StringHTML: Specifies a script to be invoked when the element is modified.
tabindexfalsefalsejava.lang.StringHTML: Specifies the position of this element within the tab order of the document.
typefalsefalsejava.lang.StringHTML: A hint to the user agent about the content type of the linked resource.
sizefalsefalsejava.lang.StringThe initial width of this control.
imagefalsefalsejava.lang.StringHTML: The URL of an image that renders in place of the button.
enabledOnUserRolefalsefalsejava.lang.StringIf user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.
visibleOnUserRolefalsefalsejava.lang.StringIf user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.
forceIdfalsefalsejava.lang.StringIf true, this component will force the use of the specified id when rendering.
forceIdIndexfalsefalsejava.lang.StringIf false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.)
actionForfalsefalsejava.lang.StringComma separated list of subForm-ids for which validation and model update should take place when this command is executed. You need to wrap your input components in org.apache.myfaces.custom.subform.SubForm instances for this to work.
actionForPhasefalsefalsejava.lang.StringComma separated list of lifecycle-phases which should be executed when this command is clicked. With this you can effectively switch on/off validation and model upate for a certain link/button. Possible Values: PROCESS_VALIDATIONS, UPDATE_MODEL_VALUES default-value: if no value is provided, both phases will be executed.

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.