Codota Logo
HtmlInputTextarea
Code IndexAdd Codota to your IDE (free)

How to use
HtmlInputTextarea
in
javax.faces.component.html

Best Java code snippets using javax.faces.component.html.HtmlInputTextarea (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: javax/javaee-web-api

public HtmlInputTextarea() {
  super();
  setRendererType("javax.faces.Textarea");
}
origin: javax/javaee-web-api

/**
 * <p>Set the value of the <code>dir</code> property.</p>
 * @param dir the new property value
 */
public void setDir(java.lang.String dir) {
  getStateHelper().put(PropertyKeys.dir, dir);
  handleAttribute("dir", dir);
}
origin: javax/javaee-web-api

private void handleAttribute(String name, Object value) {
  List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet");
  if (setAttributes == null) {
    String cname = this.getClass().getName();
    if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) {
      setAttributes = new ArrayList<String>(6);
      this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
    }
  }
  if (setAttributes != null) {
    if (value == null) {
      ValueExpression ve = getValueExpression(name);
      if (ve == null) {
        setAttributes.remove(name);
      }
    } else if (!setAttributes.contains(name)) {
      setAttributes.add(name);
    }
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

/**
 * Gets The width of this element, in characters.
 *
 * @return  the new cols value
 */
public int getCols()
{
 if (_colsSet)
 {
  return _cols;
 }
 ValueExpression expression = getValueExpression("cols");
 if (expression != null)
 {
  return (Integer)expression.getValue(getFacesContext().getELContext());
 }
 return -2147483648;
}
origin: org.apache.myfaces.core/myfaces-impl

comp.setValueExpression("cols", _cols);
comp.setValueExpression("rows", _rows);
comp.setValueExpression("accesskey", _accesskey);
comp.setValueExpression("onselect", _onselect);
comp.setValueExpression("onclick", _onclick);
comp.setValueExpression("ondblclick", _ondblclick);
comp.setValueExpression("onkeydown", _onkeydown);
comp.setValueExpression("onkeypress", _onkeypress);
comp.setValueExpression("onkeyup", _onkeyup);
comp.setValueExpression("onmousedown", _onmousedown);
comp.setValueExpression("onmousemove", _onmousemove);
comp.setValueExpression("onmouseout", _onmouseout);
comp.setValueExpression("onmouseover", _onmouseover);
comp.setValueExpression("onmouseup", _onmouseup);
comp.setValueExpression("style", _style);
origin: javax/javaee-web-api

/**
 * <p>Return the value of the <code>accesskey</code> property.</p>
 * @return the property value
 * <p>Contents: Access key that, when pressed, transfers focus
 * to this element.
 */
public java.lang.String getAccesskey() {
  return (java.lang.String) getStateHelper().eval(PropertyKeys.accesskey);
}
origin: org.apache.myfaces.tomahawk/tomahawk

comp.setValueBinding("cols", vb);
comp.getAttributes().put("cols", Integer.valueOf(_cols));
comp.setValueBinding("rows", vb);
comp.getAttributes().put("rows", Integer.valueOf(_rows));
comp.setValueBinding("style", vb);
comp.getAttributes().put("style", _style);
comp.setValueBinding("styleClass", vb);
comp.getAttributes().put("styleClass", _styleClass);
comp.setValueBinding("tabindex", vb);
comp.getAttributes().put("tabindex", _tabindex);
comp.setValueBinding("onblur", vb);
comp.getAttributes().put("onblur", _onblur);
comp.setValueBinding("onfocus", vb);
comp.getAttributes().put("onfocus", _onfocus);
comp.setValueBinding("accesskey", vb);
origin: org.icefaces/icefaces-compat

/**
 * <p>Return the value of the <code>disabled</code> property.</p>
 */
public boolean isDisabled() {
  if (!Util.isEnabledOnUserRole(this)) {
    return true;
  } else {
    return super.isDisabled();
  }
}
origin: com.liferay.faces/com.liferay.faces.alloy

@Override
public Integer getMaxLength() {
  Integer maxLength = super.getMaxLength();
  // If the developer has not specified a maxLength on the outputRemainingChars, then
  // try to get the maxlength from the associated input component.
  if (maxLength == null) {
    String forComponent = getFor();
    if (forComponent == null) {
      logger.error("getMaxLength: Please specify a 'for' attribute for the outputRemainingChars component.");
    }
    else {
      UIComponent inputComponent = findComponent(forComponent);
      if (inputComponent != null) {
        if (inputComponent instanceof HtmlInputText) {
          HtmlInputText htmlInputText = (HtmlInputText) inputComponent;
          maxLength = htmlInputText.getMaxlength();
        }
        else if (inputComponent instanceof HtmlInputTextarea) {
          HtmlInputTextarea htmlInputTextarea = (HtmlInputTextarea) inputComponent;
          Object maxLengthObject = htmlInputTextarea.getAttributes().get("maxlength");
          if (maxLengthObject != null) {
            maxLength = Integer.parseInt(maxLengthObject.toString());
          }
        }
      }
    }
  }
  return maxLength;
}
origin: com.sun.faces/jsf-api

private void handleAttribute(String name, Object value) {
  List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet");
  if (setAttributes == null) {
    String cname = this.getClass().getName();
    if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) {
      setAttributes = new ArrayList<String>(6);
      this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
    }
  }
  if (setAttributes != null) {
    if (value == null) {
      ValueExpression ve = getValueExpression(name);
      if (ve == null) {
        setAttributes.remove(name);
      }
    } else if (!setAttributes.contains(name)) {
      setAttributes.add(name);
    }
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

/**
 * Gets Script to be invoked when the pointing device is moved into this element.
 *
 * @return  the new onmouseover value
 */
public String getOnmouseover()
{
 if (_onmouseover != null)
 {
  return _onmouseover;
 }
 ValueExpression expression = getValueExpression("onmouseover");
 if (expression != null)
 {
  return (String)expression.getValue(getFacesContext().getELContext());
 }
 return null;
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces

comp.setValueExpression("onmouseup", _onmouseup);
comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
comp.setValueExpression("onmouseout", _onmouseout);
comp.setValueExpression("immediate", _immediate);
comp.setValueExpression("onmouseover", _onmouseover);
comp.setValueExpression("ondblclick", _ondblclick);
comp.setValueExpression("label", _label);
comp.setValueExpression("onclick", _onclick);
comp.setValueExpression("title", _title);
comp.addValidator(new MethodExpressionValidator(_validator));
comp.setValueExpression("dir", _dir);
comp.setValueExpression("onselect", _onselect);
comp.setValueExpression("required", _required);
comp.setValueExpression("validatorMessage", _validatorMessage);
comp.setValueExpression("converterMessage", _converterMessage);
origin: javax/javaee-web-api

/**
 * <p>Return the value of the <code>title</code> property.</p>
 * @return the property value
 * <p>Contents: Advisory title information about markup elements generated
 * for this component.
 */
public java.lang.String getTitle() {
  return (java.lang.String) getStateHelper().eval(PropertyKeys.title);
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

protected boolean isDisabled(FacesContext facesContext, UIComponent uiComponent)
{
  //TODO: overwrite in extended HtmlTextareaRenderer and check for enabledOnUserRole
  if (uiComponent instanceof HtmlInputTextarea)
  {
    return ((HtmlInputTextarea)uiComponent).isDisabled();
  }
  return org.apache.myfaces.shared_impl.renderkit.RendererUtils.getBooleanAttribute(uiComponent, HTML.DISABLED_ATTR, false);
  
}
origin: com.liferay.faces/liferay-faces-alloy

@Override
public Integer getMaxLength() {
  Integer maxLength = super.getMaxLength();
  // If the developer has not specified a maxLength on the outputRemainingChars, then
  // try to get the maxlength from the associated input component.
  if (maxLength == null) {
    String forComponent = getFor();
    if (forComponent == null) {
      logger.error("getMaxLength: Please specify a 'for' attribute for the outputRemainingChars component.");
    }
    else {
      UIComponent inputComponent = findComponent(forComponent);
      if (inputComponent != null) {
        if (inputComponent instanceof HtmlInputText) {
          HtmlInputText htmlInputText = (HtmlInputText) inputComponent;
          maxLength = htmlInputText.getMaxlength();
        }
        else if (inputComponent instanceof HtmlInputTextarea) {
          HtmlInputTextarea htmlInputTextarea = (HtmlInputTextarea) inputComponent;
          Object maxLengthObject = htmlInputTextarea.getAttributes().get("maxlength");
          if (maxLengthObject != null) {
            maxLength = Integer.parseInt(maxLengthObject.toString());
          }
        }
      }
    }
  }
  return maxLength;
}
origin: javax/javaee-web-api

/**
 * <p>Set the value of the <code>onmouseout</code> property.</p>
 * @param onmouseout the new property value
 */
public void setOnmouseout(java.lang.String onmouseout) {
  getStateHelper().put(PropertyKeys.onmouseout, onmouseout);
  handleAttribute("onmouseout", onmouseout);
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

private void handleAttribute(String name, Object value) {
  List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet");
  if (setAttributes == null) {
    String cname = this.getClass().getName();
    if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) {
      setAttributes = new ArrayList<String>(6);
      this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
    }
  }
  if (setAttributes != null) {
    if (value == null) {
      ValueExpression ve = getValueExpression(name);
      if (ve == null) {
        setAttributes.remove(name);
      }
    } else if (!setAttributes.contains(name)) {
      setAttributes.add(name);
    }
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

/**
 * Gets Script to be invoked when the pointing device is moves out of this element.
 *
 * @return  the new onmouseout value
 */
public String getOnmouseout()
{
 if (_onmouseout != null)
 {
  return _onmouseout;
 }
 ValueExpression expression = getValueExpression("onmouseout");
 if (expression != null)
 {
  return (String)expression.getValue(getFacesContext().getELContext());
 }
 return null;
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

/**
 * Construct an instance of the HtmlInputTextarea.
 */
public HtmlInputTextarea()
{
 setRendererType("javax.faces.Textarea");
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

comp.setValueExpression("cols", _cols);
comp.setValueExpression("rows", _rows);
comp.setValueExpression("label", _label);
comp.setValueExpression("style", _style);
comp.setValueExpression("styleClass", _styleClass);
comp.setValueExpression("tabindex", _tabindex);
comp.setValueExpression("onblur", _onblur);
comp.setValueExpression("onfocus", _onfocus);
comp.setValueExpression("accesskey", _accesskey);
comp.setValueExpression("onclick", _onclick);
comp.setValueExpression("ondblclick", _ondblclick);
comp.setValueExpression("onkeydown", _onkeydown);
comp.setValueExpression("onkeypress", _onkeypress);
comp.setValueExpression("onkeyup", _onkeyup);
comp.setValueExpression("onmousedown", _onmousedown);
javax.faces.component.htmlHtmlInputTextarea

Javadoc

Represents an HTML textarea element.

By default, the rendererType property must be set to "javax.faces.Textarea". This value can be changed by calling the setRendererType() method.

Most used methods

  • getAttributes
  • setRendererType
  • getStateHelper
  • getValueExpression
  • isDisabled
    Return the value of the disabled property.
  • handleAttribute
  • setConverter
  • addValidator
  • addValueChangeListener
  • setValueExpression
  • getLabel
    Return the value of the label property.
  • setCols
    Set the value of the cols property.
  • getLabel,
  • setCols,
  • setRows,
  • <init>,
  • broadcast,
  • getClientId,
  • getFacesContext,
  • getSubmittedValue,
  • isRendered,
  • restoreState

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now