<button>
element. The default type is submit. Since it extends HtmlCommandButton
it supports all the features of h:commandButton
. The component must be a child of h:form in order to trigger the action or actionListener.Info | Value |
---|---|
Component Type | com.liferay.faces.alloy.component.commandbutton.CommandButton |
Handler Class | None |
Renderer Type | com.liferay.faces.alloy.component.commandbutton.CommandButtonRenderer |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
accesskey | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying a hot key character for the element. |
action | false | javax.el.MethodExpression
(signature must match java.lang.Object action() )
| A method that is executed when this component is clicked. The method must be public , return an Object , and take no arguments. The toString() method of the returned object is used to determine where to navigate (if at all) after the action has been performed. |
actionListener | false | javax.el.MethodExpression
(signature must match void actionListener(javax.faces.event.ActionEvent) )
| A method that is executed when this component is clicked. The method must be public , return void , and take either no arguments or one ActionEvent argument. |
ajax | false | javax.el.ValueExpression
(must evaluate to boolean )
| When this flag is true, clicking on the button will cause the form to be submitted via XmlHttpRequest. The default value is true . |
alt | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying alternative information about the rendered HTML element. |
autofocus | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| HTML passthrough attribute specifying whether or not the component should automatically recieve focus on the initial page load. |
binding | false | javax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent )
| An EL expression that binds the Java reference to this component in the component tree to a bean property. |
dir | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying the reading direction for the element For example, right to left (RTL), or left to right (LTR). |
disabled | false | javax.el.ValueExpression
(must evaluate to boolean )
| When this flag is true, the component will be disabled, and the user will be unable to interact with the component. The default value is false . |
execute | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Space-delimited list of component ids that are to participate in the APPLY_REQUEST_VALUES, PROCESS_VALIDATIONS, UPDATE_MODEL_VALUES, and INVOKE_APPLICATION phases of the JSF lifecycle. The following keywords may also appear in the list: @this , @form , @all , @none . The default value is "@all" . |
id | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| A unique identifier for this component. |
image | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Specifies the URL of an image. |
immediate | false | javax.el.ValueExpression
(must evaluate to boolean )
| When this flag is true, this component's value must be converted and validated (immediately) during the Apply Request Values phase, instead of (later) during the PROCESS_VALIDATIONS phase. |
label | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| A name for this component to be rendered to the user. This name should be localized for the user. |
lang | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying the language code used in the element. |
onblur | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute after this component loses focus. |
onchange | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute after this component's value has changed, and then it loses focus. |
onclick | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when this component is clicked. |
ondblclick | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a double click event occurs. |
onfocus | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when this component gets focus. |
onkeydown | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a keydown event occurs. |
onkeypress | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a keypress event occurs. |
onkeyup | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a keyup event occurs. |
onmousedown | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a mousedown event occurs. |
onmousemove | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a mousemove event occurs. |
onmouseout | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a mouseout event occurs. |
onmouseover | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a mouseover event occurs. |
onmouseup | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when a mouseup event occurs. |
onselect | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Javascript to execute when the user selects this component. |
process | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Synonym for the execute attribute. The default value is "@all" . |
readonly | false | javax.el.ValueExpression
(must evaluate to boolean )
| When true, this causes an attribute to be rendered as readonly="readonly", and prevents the user from changing the value of this component. |
render | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Space-delimited list of component ids that are to participate in the RENDER_RESPONSE phase of the JSF lifecycle and be re-rendered in the DOM after the response is received from the XmlHttpRequest. The following keywords may also appear in the list: @this , @form , @all , @none . The default value is "@none" . |
rendered | false | javax.el.ValueExpression
(must evaluate to boolean )
| When this flag is true, this component will be rendered to there response. When false, it will not be rendered to the response. The default value is true . |
role | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying the various WAI-ARIA roles that the element is used for. Since: JSF 2.2 |
style | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying the css style of the element. |
styleClass | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| List of CSS class names (separated by spaces) that are to be rendered within the class attribute. The default value is "btn-default" . |
tabindex | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying where the element is located in the tabbing progression. |
title | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML passthrough attribute specifying the title of the element. |
type | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The type of the button: button, submit (default), or reset. |
update | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Synonym for the render attribute. The default value is "@none" . |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| The value of this component. |
Output generated by Vdldoc View Declaration Language Documentation Generator.