Class TextField<T>

    • Constructor Detail

      • TextField

        public TextField​(java.lang.String id,
                         java.lang.Class<T> type)
        Parameters:
        id - See Component
        type - Type for field validation
      • TextField

        public TextField​(java.lang.String id,
                         IModel<T> model,
                         java.lang.Class<T> type)
        Parameters:
        id - See Component
        model - See Component
        type - The type to use when updating the model for this text field
        See Also:
        Component(String, IModel)
    • Method Detail

      • getInputTypes

        protected java.lang.String[] getInputTypes()
        Subclass should override this method if this textfield is mapped on a different input type as text. Like PasswordTextField or HiddenField.
        Returns:
        The input type of this textfield, default is null