类 LabelTag

  • 所有已实现的接口:
    Serializable, DynamicAttributes, IterationTag, JspTag, Tag, TryCatchFinally, EditorAwareTag

    public class LabelTag
    extends AbstractHtmlElementTag
    The <label> tag renders a form field label in an HTML 'label' tag.

    See the "formTags" showcase application that ships with the full Spring distribution for an example of this class in action.

    Attribute Summary
    AttributeRequired?Runtime Expression?Description

    cssClass

    false

    true

    HTML Optional Attribute.

    cssErrorClass

    false

    true

    HTML Optional Attribute. Used only when errors are present.

    cssStyle

    false

    true

    HTML Optional Attribute

    dir

    false

    true

    HTML Standard Attribute

    for

    false

    true

    HTML Standard Attribute

    htmlEscape

    false

    true

    Enable/disable HTML escaping of rendered values.

    id

    false

    true

    HTML Standard Attribute

    lang

    false

    true

    HTML Standard Attribute

    onclick

    false

    true

    HTML Event Attribute

    ondblclick

    false

    true

    HTML Event Attribute

    onkeydown

    false

    true

    HTML Event Attribute

    onkeypress

    false

    true

    HTML Event Attribute

    onkeyup

    false

    true

    HTML Event Attribute

    onmousedown

    false

    true

    HTML Event Attribute

    onmousemove

    false

    true

    HTML Event Attribute

    onmouseout

    false

    true

    HTML Event Attribute

    onmouseover

    false

    true

    HTML Event Attribute

    onmouseup

    false

    true

    HTML Event Attribute

    path

    true

    true

    Path to errors object for data binding

    tabindex

    false

    true

    HTML Standard Attribute

    title

    false

    true

    HTML Standard Attribute

    从以下版本开始:
    2.0
    作者:
    Rob Harrop, Juergen Hoeller
    另请参阅:
    序列化表格