Package com.avoka.fc.core.click
Class XssConfigurableTextField
- java.lang.Object
-
- org.apache.click.control.AbstractControl
-
- org.apache.click.control.Field
-
- org.apache.click.control.TextField
-
- com.avoka.fc.core.click.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
-
-
Constructor Summary
Constructors Constructor Description XssConfigurableTextField()
Construct the XssConfigurableTextFieldXssConfigurableTextField(String name)
Construct the XssConfigurableTextField with the given name.XssConfigurableTextField(String name, boolean required)
Construct the XssConfigurableTextField with the given name.XssConfigurableTextField(String name, String label)
Construct the XssConfigurableTextField with the given name.XssConfigurableTextField(String name, String label, boolean required)
Construct the XssConfigurableTextField with the given name.XssConfigurableTextField(String name, String label, int size)
Construct the XssConfigurableTextField with the given name.XssConfigurableTextField(String name, String label, int size, boolean required)
Construct the XssConfigurableTextField with the given name.
-
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 ifDeploymentProperty.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 fieldrequired
- marks field as required
-
XssConfigurableTextField
public XssConfigurableTextField(String name, String label)
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldlabel
- 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 fieldrequired
- marks field as requiredlabel
- 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 fieldlabel
- the label of the fieldsize
- of the field
-
-
Method Detail
-
bindRequestValue
public void bindRequestValue()
This method binds the submitted request value to the Field's value ifDeploymentProperty.PROPERTY_ENABLE_XSS_CONTROL_PROTECTION
is true and value is safe.- Overrides:
bindRequestValue
in classorg.apache.click.control.Field
-
-