1 33 34 package com.icesoft.faces.webapp.parser; 35 36 import javax.faces.component.UIComponent; 37 import javax.faces.component.UIOutput; 38 import javax.faces.webapp.UIComponentTag; 39 40 public class IceOutputTextTag extends UIComponentTag { 41 private String value; 42 private static int uniqueId = 0; 43 44 public String getRendererType() { 45 return "javax.faces.Text"; 46 } 47 48 public String getComponentType() { 49 return "javax.faces.Output"; 50 } 51 52 protected void setProperties(UIComponent comp) { 53 super.setProperties(comp); 54 UIOutput component = (UIOutput) comp; 55 component.setValue(value); 56 component.setRendererType("com.icesoft.faces.Text"); 57 58 String id = new String ("_iceID" + uniqueId++); 60 component.setId(id); 61 this.setId(id); 62 63 component.getAttributes().put("escape", "false"); 65 } 66 67 72 public void setValue(String val) { 73 value = val; 74 } 75 76 81 public String getValue() { 82 return value; 83 } 84 } 85 | Popular Tags |