1 17 package org.alfresco.web.ui.repo.tag; 18 19 import javax.faces.component.UICommand; 20 import javax.faces.component.UIComponent; 21 22 import org.alfresco.web.ui.common.tag.BaseComponentTag; 23 24 27 public class TemplateTag extends BaseComponentTag 28 { 29 32 public String getComponentType() 33 { 34 return "org.alfresco.faces.Template"; 35 } 36 37 40 public String getRendererType() 41 { 42 return null; 44 } 45 46 49 protected void setProperties(UIComponent component) 50 { 51 super.setProperties(component); 52 53 setStringProperty(component, "engine", this.engine); 54 setStringProperty(component, "template", this.template); 55 setStringBindingProperty(component, "model", this.model); 56 } 57 58 61 public void release() 62 { 63 super.release(); 64 65 this.engine = null; 66 this.template = null; 67 this.model = null; 68 } 69 70 75 public void setEngine(String engine) 76 { 77 this.engine = engine; 78 } 79 80 85 public void setTemplate(String template) 86 { 87 this.template = template; 88 } 89 90 95 public void setModel(String model) 96 { 97 this.model = model; 98 } 99 100 101 102 private String engine; 103 104 105 private String template; 106 107 108 private String model; 109 } 110 | Popular Tags |