Class XssConfigurableTextField

  • All Implemented Interfaces:
    Serializable, org.apache.click.Control, org.apache.click.Stateful

    public class XssConfigurableTextField
    extends org.apache.click.control.TextField
    Wrapper class for TextField to provide enhanced xss protection.
    Since:
    22.04.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.click.control.TextField

        maxLength, minLength, placeholder, size, VALIDATE_TEXTFIELD_FUNCTION
      • Fields inherited from class org.apache.click.control.Field

        disabled, error, focus, form, help, label, labelStyle, labelStyleClass, parentStyleClassHint, parentStyleHint, readonly, required, tabindex, title, trim, validate, value
      • Fields inherited from class org.apache.click.control.AbstractControl

        actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles
      • Fields inherited from interface org.apache.click.Control

        CONTROL_MESSAGES
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bindRequestValue()
      This method binds the submitted request value to the Field's value if DeploymentProperty.PROPERTY_ENABLE_XSS_CONTROL_PROTECTION is true and value is safe.
      • Methods inherited from class org.apache.click.control.TextField

        getControlSizeEst, getMaxLength, getMinLength, getPlaceholder, getSize, getTag, getType, getValidationJavaScript, isAutocomplete, render, setAutocomplete, setMaxLength, setMinLength, setPlaceholder, setSize, validate
      • Methods inherited from class org.apache.click.control.Field

        getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getLabelStyle, getLabelStyleClass, getParentStyleClassHint, getParentStyleHint, getRequestValue, getState, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isAutofocus, isDisabled, isHidden, isReadonly, isRequired, isTrim, isValid, onProcess, removeState, renderTagBegin, restoreState, saveState, setAutofocus, setDisabled, setError, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setLabelStyle, setLabelStyleClass, setListener, setParent, setParentStyleClassHint, setParentStyleHint, setReadonly, setRequired, setState, setTabIndex, setTextAlign, setTitle, setTrim, setValidate, setValue, setValueObject, setWidth
      • Methods inherited from class org.apache.click.control.AbstractControl

        addBehavior, addStyleClass, appendAttributes, classExists, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, onDestroy, onInit, onRender, removeBehavior, removeStyleClass, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString
    • Constructor Detail

      • XssConfigurableTextField

        public XssConfigurableTextField()
        Construct the XssConfigurableTextField
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name,
                                        boolean required)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
        required - marks field as required
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name,
                                        String label)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
        label - the label of the field
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name,
                                        String label,
                                        boolean required)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
        required - marks field as required
        label - the label of the field
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name,
                                        String label,
                                        int size)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
        label - the label of the field
        size - of the field
      • XssConfigurableTextField

        public XssConfigurableTextField​(String name,
                                        String label,
                                        int size,
                                        boolean required)
        Construct the XssConfigurableTextField with the given name.
        Parameters:
        name - the name of the field
        label - the label of the field
        size - of the field
        required - marks field as required