Class Check<T>

    • Method Detail

      • getValue

        public java.lang.String getValue()
        Form submission value used for the Html value attribute of the input tag.

        If Checks are recreated on each render of their CheckGroup, this method should be overridden to return a 'stable' value, otherwise its selection will be lost after a Form was submitted and resulted in Form.hasError().

        Returns:
        input value
      • setLabel

        public Check<T> setLabel​(IModel<java.lang.String> labelModel)
        The value will be made available to the validator property by means of ${label}. It does not have any specific meaning to Check itself.
        Overrides:
        setLabel in class LabeledWebMarkupContainer
        Parameters:
        labelModel -
        Returns:
        this for chaining
      • getStatelessHint

        protected boolean getStatelessHint()
        Description copied from class: Component
        Returns whether the component can be stateless. Also the component behaviors must be stateless, otherwise the component will be treat as stateful. In order for page to be stateless (and not to be stored in session), all components (and component behaviors) must be stateless.
        Overrides:
        getStatelessHint in class Component
        Returns:
        whether the component can be stateless