Class HiddenField<T>

    • Constructor Detail

      • HiddenField

        public HiddenField​(String id)
        Construct.
        Parameters:
        id - component id
      • HiddenField

        public HiddenField​(String id,
                           Class<T> type)
        Construct.
        Parameters:
        id - component id
        type - the type to use when updating the model for this text field
      • HiddenField

        public HiddenField​(String id,
                           IModel<T> model)
        Construct.
        Parameters:
        id - see Component
        model - the model
      • HiddenField

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

      • getInputTypes

        protected String[] getInputTypes()
        Description copied from class: TextField
        Subclass should override this method if this textfield is mapped on a different input type as text. Like PasswordTextField or HiddenField.
        Overrides:
        getInputTypes in class TextField<T>
        Returns:
        The input type of this textfield, default is null
        See Also:
        TextField.getInputTypes()