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

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

Best Java code snippets using javax.faces.component.html.HtmlInputTextarea.getAttributes (Showing top 13 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

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: 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: javax.faces/javax.faces-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.glassfish/javax.faces

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: jboss/jboss-javaee-specs

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.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.glassfish/jakarta.faces

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: eclipse-ee4j/mojarra

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: eclipse-ee4j/mojarra

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: 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: liferay/liferay-faces

@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.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: org.apache.myfaces.tomahawk/tomahawk

comp.getAttributes().put("cols", Integer.valueOf(_cols));
comp.getAttributes().put("rows", Integer.valueOf(_rows));
comp.getAttributes().put("style", _style);
comp.getAttributes().put("styleClass", _styleClass);
comp.getAttributes().put("tabindex", _tabindex);
comp.getAttributes().put("onblur", _onblur);
comp.getAttributes().put("onfocus", _onfocus);
comp.getAttributes().put("accesskey", _accesskey);
comp.getAttributes().put("onclick", _onclick);
comp.getAttributes().put("ondblclick", _ondblclick);
comp.getAttributes().put("onkeydown", _onkeydown);
comp.getAttributes().put("onkeypress", _onkeypress);
comp.getAttributes().put("onkeyup", _onkeyup);
comp.getAttributes().put("onmousedown", _onmousedown);
comp.getAttributes().put("onmousemove", _onmousemove);
javax.faces.component.htmlHtmlInputTextareagetAttributes

Popular methods of HtmlInputTextarea

  • 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.
  • setRows
    Set the value of the rows property.
  • setCols,
  • setRows,
  • <init>,
  • broadcast,
  • getClientId,
  • getFacesContext,
  • getSubmittedValue,
  • isRendered,
  • restoreState

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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