1 16 17 package org.apache.struts.faces.taglib; 18 19 20 import javax.faces.component.UIComponent; 21 22 23 30 31 public class ErrorsTag extends AbstractFacesTag { 32 33 34 36 37 40 protected String property = null; 41 42 public void setProperty(String property) { 43 this.property = property; 44 } 45 46 47 49 50 53 public String getComponentType() { 54 55 return ("org.apache.struts.faces.Errors"); 56 57 } 58 59 60 64 public String getRendererType() { 65 66 return ("org.apache.struts.faces.Errors"); 67 68 } 69 70 71 74 public void release() { 75 76 super.release(); 77 this.property = null; 78 79 } 80 81 82 84 85 90 protected void setProperties(UIComponent component) { 91 92 super.setProperties(component); 93 setStringAttribute(component, "property", property); 94 95 } 96 97 98 100 101 } 102 | Popular Tags |