1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.html.HTML; 19 20 import javax.faces.component.UIComponent; 21 22 39 public abstract class HtmlFormTagBase 40 extends HtmlComponentTagBase 41 { 42 44 46 48 50 52 54 private String _accept; 55 private String _acceptCharset; 56 private String _enctype; 57 private String _name; 58 private String _onreset; 59 private String _onsubmit; 60 private String _target; 61 62 public void release() { 64 super.release(); 65 _accept=null; 66 _acceptCharset=null; 67 _enctype=null; 68 _name=null; 69 _onreset=null; 70 _onsubmit=null; 71 _target=null; 72 } 73 74 protected void setProperties(UIComponent component) 75 { 76 super.setProperties(component); 77 setStringProperty(component, HTML.ACCEPT_ATTR, _accept); 78 setStringProperty(component, HTML.ACCEPT_CHARSET_ATTR, _acceptCharset); 79 setStringProperty(component, HTML.ENCTYPE_ATTR, _enctype); 80 setStringProperty(component, HTML.NAME_ATTR, _name); 81 setStringProperty(component, HTML.ONRESET_ATTR, _onreset); 82 setStringProperty(component, HTML.ONSUMBIT_ATTR, _onsubmit); 83 setStringProperty(component, HTML.TARGET_ATTR, _target); 84 } 85 86 public void setAccept(String accept) 87 { 88 _accept = accept; 89 } 90 91 public void setAcceptCharset(String acceptCharset) 92 { 93 _acceptCharset = acceptCharset; 94 } 95 96 public void setEnctype(String enctype) 97 { 98 _enctype = enctype; 99 } 100 101 public void setName(String name) 102 { 103 _name = name; 104 } 105 106 public void setOnreset(String onreset) 107 { 108 _onreset = onreset; 109 } 110 111 public void setOnsubmit(String onsubmit) 112 { 113 _onsubmit = onsubmit; 114 } 115 116 public void setTarget(String target) 117 { 118 _target = target; 119 } 120 121 } 122 | Popular Tags |