Class TextAreaInputControl

java.lang.Object
org.apache.empire.jsf2.controls.InputControl
org.apache.empire.jsf2.controls.TextAreaInputControl

public class TextAreaInputControl extends InputControl
  • Field Details

  • Constructor Details

    • TextAreaInputControl

      public TextAreaInputControl(String name, Class<? extends javax.faces.component.html.HtmlInputTextarea> inputComponentClass)
    • 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: InputControl
      Renders the control value with a surrounding HTML tag, if a tagName is supplied
      Overrides:
      renderValue in class InputControl
      Parameters:
      comp - the JSF component
      tagName - 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 info
      context - 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:
      createInputComponents in class InputControl
    • 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:
      updateInputState in class InputControl
    • formatValue

      public String formatValue(Object value, InputControl.ValueInfo vi, boolean escapeHtml)
      Description copied from class: InputControl
      Returns the formatted value Do not override this function, but override formatValue(Object, ValueInfo) instead.
      Overrides:
      formatValue in class InputControl
      Parameters:
      value - the value to format
      vi - the valueInfo
      escapeHtml - when true the value will be escaped for Html
      Returns:
      the formatted value
    • parseInputValue

      protected Object parseInputValue(String value, InputControl.InputInfo ii)
      Description copied from class: InputControl
      Parses a value for a single input component
      Overrides:
      parseInputValue in class InputControl
      Parameters:
      value - the value to parse
      ii - the input info
      Returns:
      the parsed and converted value