crm:button

Overview

The <crm:button> tag is used to display a button on the page.

Attributes

NameRequiredTypeDefaultDescription
disabledfalseBooleanfalseFlag indicating that component is disabled or not.
iconfalseStringfalse

Icon of the button.

Use font awesome icon class supported by version 4.7.0.

idtrueStringnullUnique identifier of the component.
labelKeytrueStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as the presentable name of the component.

managedBeantrueStringnullThe name of the Java managed bean class that will be used for retrieving the component values.
modefalseStringThe mode of the managed bean.

The mode of the component.

Allowed values are VIEW and EDIT.

onClickFunctiontrueStringnull

Defines the function call triggered when button is clicked.

parametersfalseStringnullDefines the parameter of the function call.
processfalseStringThe value of the refresh attributeComponent(s) to process in partial request.
refreshfalseString@formComponent(s) to update with ajax.
styleClassfalseStringnullStyle class of the component.
visiblefalseBooleantrueControls the visibility of the component.


Getting Started

The following example shows a button component.