1 16 package org.apache.myfaces.custom.selectOneCountry; 17 18 import javax.faces.component.UIComponent; 19 20 import org.apache.myfaces.taglib.html.ext.HtmlSelectOneMenuTag; 21 22 34 public class SelectOneCountryTag extends HtmlSelectOneMenuTag { 35 public String getComponentType() { 36 return SelectOneCountry.COMPONENT_TYPE; 37 } 38 39 public String getRendererType() { 40 return "org.apache.myfaces.SelectOneCountryRenderer"; 41 } 42 43 private String maxLength; 44 45 public void release() { 46 super.release(); 47 maxLength=null; 48 } 49 50 protected void setProperties(UIComponent component) { 51 super.setProperties(component); 52 53 setIntegerProperty(component, "maxLength", maxLength); 54 } 55 56 public void setMaxLength(String maxLength){ 57 this.maxLength = maxLength; 58 } 59 } | Popular Tags |