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:
-
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
-
Constructor Summary
ConstructorDescriptionConstruct the XssConfigurableTextFieldConstruct 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
Modifier and TypeMethodDescriptionvoid
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 Details
-
XssConfigurableTextField
public XssConfigurableTextField()Construct the XssConfigurableTextField -
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the field
-
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldrequired
- marks field as required
-
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldlabel
- the label of the field
-
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldrequired
- marks field as requiredlabel
- the label of the field
-
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldlabel
- the label of the fieldsize
- of the field
-
XssConfigurableTextField
Construct the XssConfigurableTextField with the given name.- Parameters:
name
- the name of the fieldlabel
- the label of the fieldsize
- of the fieldrequired
- marks field as required
-
-
Method Details
-
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
-