spring-framework / org.springframework.web.servlet.tags.form / ButtonTag

ButtonTag

open class ButtonTag : AbstractHtmlElementTag

The <button> tag renders a form field label in an HTML 'button' tag. It is provided for completeness if the application relies on a RequestDataValueProcessor.

Attribute Summary Attribute Required? Runtime Expression? Description

disabled

false

true

HTML Optional Attribute. Setting the value of this attribute to 'true' will disable the HTML element.

id

false

true

HTML Standard Attribute

name

false

true

The name attribute for the HTML button tag

value

false

true

The name attribute for the HTML button tag

Author
Rossen Stoyanchev

Since
3.1

Constructors

<init>

ButtonTag()

The <button> tag renders a form field label in an HTML 'button' tag. It is provided for completeness if the application relies on a RequestDataValueProcessor.

Attribute Summary Attribute Required? Runtime Expression? Description

disabled

false

true

HTML Optional Attribute. Setting the value of this attribute to 'true' will disable the HTML element.

id

false

true

HTML Standard Attribute

name

false

true

The name attribute for the HTML button tag

value

false

true

The name attribute for the HTML button tag

Properties

DISABLED_ATTRIBUTE

static val DISABLED_ATTRIBUTE: String

The name of the 'disabled' attribute.

Functions

doEndTag

open fun doEndTag(): Int

Closes the 'button' block tag.

getName

open fun getName(): String

Set the value of the 'name' attribute.

getValue

open fun getValue(): String

Get the value of the 'value' attribute.

isDisabled

open fun isDisabled(): Boolean

Get the value of the 'disabled' attribute.

setDisabled

open fun setDisabled(disabled: Boolean): Unit

Set the value of the 'disabled' attribute.

setName

open fun setName(name: String): Unit

Get the value of the 'name' attribute.

setValue

open fun setValue(value: String): Unit

Set the value of the 'value' attribute.