Class TextFieldTag

  • All Implemented Interfaces:
    ConditionalTag, org.apache.commons.jelly.Tag
    Direct Known Subclasses:
    PasswordFieldTag

    public class TextFieldTag
    extends InputComponentTag

    A specific input component tag that constructs a text field component.

    Text fields are quite easy to define. In addition to the attributes inherited from the base classes the following attributes are supported by this tag handler class:

    Attribute Description Optional
    columns Defines the number of columns the text field should have. yes
    maxlength Allows to define a maximum length for text the user can type into this text field. yes

    Version:
    $Id: TextFieldTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • TextFieldTag

        public TextFieldTag()
    • Method Detail

      • getColumns

        public int getColumns()
        Returns the number of visible columns.
        Returns:
        the number of columns
      • setColumns

        public void setColumns​(int columns)
        Setter method for the columns attributes.
        Parameters:
        columns - the attribute value
      • getMaxlength

        public int getMaxlength()
        Returns the maximum number of character that can be entered into this field. Values of 0 or less mean that there is no limit.
        Returns:
        the number of characters this field can hold
      • setMaxlength

        public void setMaxlength​(int maxlength)
        Setter method for the maxlength attribute.
        Parameters:
        maxlength - the attribute value