Package com.avoka.fc.core.click
Class XssConfigurableTextArea
java.lang.Object
org.apache.click.control.AbstractControl
org.apache.click.control.Field
org.apache.click.control.TextArea
com.avoka.fc.core.click.XssConfigurableTextArea
- All Implemented Interfaces:
Serializable
,org.apache.click.Control
,org.apache.click.Stateful
public class XssConfigurableTextArea
extends org.apache.click.control.TextArea
Wrapper class for TextArea to provide enhanced xss protection.
- Since:
- 22.04.0
- See Also:
-
Field Summary
Fields inherited from class org.apache.click.control.TextArea
cols, maxLength, minLength, placeholder, rows, VALIDATE_TEXTAREA_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 XssConfigurableTextArea with the given name.XssConfigurableTextArea
(String name, boolean required) Construct the XssConfigurableTextArea with the given name and required status.XssConfigurableTextArea
(String name, int cols, int rows) Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.XssConfigurableTextArea
(String name, String label) Construct the XssConfigurableTextArea with the given name and label.XssConfigurableTextArea
(String name, String label, int cols, int rows) Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows. -
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.TextArea
getCols, getControlSizeEst, getMaxLength, getMinLength, getPlaceholder, getRows, getTag, getValidationJavaScript, render, setCols, setMaxLength, setMinLength, setPlaceholder, setRows, 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
-
XssConfigurableTextArea
Construct the XssConfigurableTextArea with the given name. The area will have a default size of 20 cols and 3 rows.- Parameters:
name
- the name of the field
-
XssConfigurableTextArea
Construct the XssConfigurableTextArea with the given name and label. The area will have a default size of 20 cols and 3 rows.- Parameters:
name
- the name of the fieldlabel
- the label of the field
-
XssConfigurableTextArea
Construct the XssConfigurableTextArea with the given name and required status. The area will have a default size of 20 cols and 3 rows.- Parameters:
name
- the name of the fieldrequired
- the field required status
-
XssConfigurableTextArea
Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.- Parameters:
name
- the name of the fieldcols
- the number of text area colsrows
- the number of text area rows
-
XssConfigurableTextArea
Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.- Parameters:
name
- the name of the fieldlabel
- the label of the fieldcols
- the number of text area colsrows
- the number of text area rows
-
-
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
-