1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.JSFAttr; 19 import org.apache.myfaces.renderkit.html.HTML; 20 21 import javax.faces.component.UIComponent; 22 23 24 53 public abstract class HtmlInputTagBase 54 extends HtmlComponentTagBase 55 { 56 58 61 private String _immediate; 63 private String _required; 64 private String _validator; 65 private String _valueChangeListener; 66 private String _readonly; 67 68 public void release() { 69 super.release(); 70 71 _immediate=null; 72 _required=null; 73 _validator=null; 74 _valueChangeListener=null; 75 _readonly=null; 76 } 77 78 protected void setProperties(UIComponent component) 79 { 80 super.setProperties(component); 81 82 setBooleanProperty(component, JSFAttr.IMMEDIATE_ATTR, _immediate); 83 setBooleanProperty(component, JSFAttr.REQUIRED_ATTR, _required); 84 setValidatorProperty(component, _validator); 85 setValueChangedListenerProperty(component, _valueChangeListener); 86 setBooleanProperty(component, HTML.READONLY_ATTR, _readonly); 87 } 88 89 public void setImmediate(String immediate) 90 { 91 _immediate = immediate; 92 } 93 94 public void setRequired(String required) 95 { 96 _required = required; 97 } 98 99 public void setValidator(String validator) 100 { 101 _validator = validator; 102 } 103 104 public void setValueChangeListener(String valueChangeListener) 105 { 106 _valueChangeListener = valueChangeListener; 107 } 108 public void setReadonly(String _readonly) { 109 this._readonly = _readonly; 110 } 111 112 } 113 | Popular Tags |