1 16 17 package org.apache.struts.faces.taglib; 18 19 20 import javax.faces.component.UIComponent; 21 22 23 30 31 public class MessageTag extends AbstractFacesTag { 32 33 34 36 37 41 private String filter = null; 42 43 public void setFilter(String filter) { 44 this.filter = filter; 45 } 46 47 48 51 private String key = null; 52 53 public void setKey(String key) { 54 this.key = key; 55 } 56 57 58 60 61 64 public void release() { 65 66 super.release(); 67 filter = null; 68 key = null; 69 70 } 71 72 73 75 76 79 public String getComponentType() { 80 81 return ("org.apache.struts.faces.Message"); 82 83 } 84 85 86 90 public String getRendererType() { 91 92 return ("org.apache.struts.faces.Message"); 93 94 } 95 96 97 99 100 105 protected void setProperties(UIComponent component) { 106 107 super.setProperties(component); 108 setBooleanAttribute(component, "filter", filter); 109 setStringAttribute(component, "key", key); 110 111 } 112 113 114 } 115 | Popular Tags |