Package org.apache.empire.jsf2.controls
Class TextAreaInputControl
java.lang.Object
org.apache.empire.jsf2.controls.InputControl
org.apache.empire.jsf2.controls.TextAreaInputControl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.jsf2.controls.InputControl
InputControl.DisabledType, InputControl.InputInfo, InputControl.ValueInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.empire.jsf2.controls.InputControl
CSS_STYLE_CLASS, FORMAT_NO_VALUE_STYLES, FORMAT_NULL, FORMAT_NULL_ATTRIBUTE, HTML_ATTR_CHECKED, HTML_ATTR_CLASS, HTML_ATTR_DISABLED, HTML_ATTR_ID, HTML_ATTR_STYLE, HTML_ATTR_TYPE, HTML_EXPR_NBSP, HTML_TAG_DIV, HTML_TAG_INPUT, HTML_TAG_LABEL, HTML_TAG_SPAN, HTML_TAG_TABLE, HTML_TAG_TD, HTML_TAG_TR -
Constructor Summary
ConstructorsConstructorDescriptionTextAreaInputControl(String name, Class<? extends javax.faces.component.html.HtmlInputTextarea> inputComponentClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateInputComponents(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.context.FacesContext context, List<javax.faces.component.UIComponent> compList) formatValue(Object value, InputControl.ValueInfo vi, boolean escapeHtml) Returns the formatted value Do not override this function, but override formatValue(Object, ValueInfo) instead.protected ObjectparseInputValue(String value, InputControl.InputInfo ii) Parses a value for a single input componentvoidrenderValue(javax.faces.component.UIComponent comp, String tagName, StyleClass styleClass, String tooltip, InputControl.ValueInfo vi, javax.faces.context.FacesContext context) Renders the control value with a surrounding HTML tag, if a tagName is suppliedprotected voidupdateInputState(List<javax.faces.component.UIComponent> compList, InputControl.InputInfo ii, javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId) Methods inherited from class org.apache.empire.jsf2.controls.InputControl
addAttachedObjects, addDataValueStyle, addRemoveStyle, addRemoveValueNullStyle, clearLocalValues, clearSubmittedValue, copyAttribute, copyAttributes, copyAttributes, createInput, formatInputValue, formatValue, getConvertedValue, getCssStyleClass, getFirstInput, getFormatInteger, getFormatOption, getFormatOption, getFormatString, getInputComponents, getInputCount, getInputValue, getInputValue, getLabelForId, getName, getOptionText, hasFormatOption, hasFormatOption, initCssStyleClass, isCreatingComponents, isInputValueExpressionEnabled, parseInputValue, postUpdateModel, renderInput, renderValue, restoreSubmittedValue, setInputStyleClass, setInputStyleClass, setInputStyleClass, setInputValue, setInputValue, setInputValueExpression, updateAttachedObjects, updateInputState
-
Field Details
-
NAME
- See Also:
-
FORMAT_COLS
- See Also:
-
FORMAT_COLS_ATTRIBUTE
- See Also:
-
FORMAT_ROWS
- See Also:
-
FORMAT_ROWS_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
TextAreaInputControl
-
TextAreaInputControl
public TextAreaInputControl()
-
-
Method Details
-
renderValue
public void renderValue(javax.faces.component.UIComponent comp, String tagName, StyleClass styleClass, String tooltip, InputControl.ValueInfo vi, javax.faces.context.FacesContext context) throws IOException Description copied from class:InputControlRenders the control value with a surrounding HTML tag, if a tagName is supplied- Overrides:
renderValuein classInputControl- Parameters:
comp- the JSF componenttagName- the tag name of the HTML wrapper tag (optional)styleClass- the style class of the HTML wrapper tag (optional)tooltip- the title of the HTML wrapper tag (optional)vi- the value infocontext- the FacesContext- Throws:
IOException- from ResponseWriter
-
createInputComponents
protected void createInputComponents(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.context.FacesContext context, List<javax.faces.component.UIComponent> compList) - Specified by:
createInputComponentsin classInputControl
-
updateInputState
protected void updateInputState(List<javax.faces.component.UIComponent> compList, InputControl.InputInfo ii, javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId) - Specified by:
updateInputStatein classInputControl
-
formatValue
Description copied from class:InputControlReturns the formatted value Do not override this function, but override formatValue(Object, ValueInfo) instead.- Overrides:
formatValuein classInputControl- Parameters:
value- the value to formatvi- the valueInfoescapeHtml- when true the value will be escaped for Html- Returns:
- the formatted value
-
parseInputValue
Description copied from class:InputControlParses a value for a single input component- Overrides:
parseInputValuein classInputControl- Parameters:
value- the value to parseii- the input info- Returns:
- the parsed and converted value
-