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); } } }
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); } } }
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); } } }
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); } } }
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); } } }
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); } } }
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); } } }
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); } } }
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); } } }
@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; }
@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; }
@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; }
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);