1 16 package org.apache.cocoon.faces.taglib; 17 18 import org.xml.sax.SAXException ; 19 20 import javax.faces.component.UIComponent; 21 import javax.faces.component.UIOutput; 22 23 26 public class VerbatimTag extends UIComponentBodyTag { 27 28 protected String getComponentType() { 29 return "javax.faces.Output"; 30 } 31 32 protected String getRendererType() { 33 return "javax.faces.Text"; 34 } 35 36 protected void setProperties(UIComponent component) { 37 super.setProperties(component); 38 component.setTransient(true); 40 } 41 42 public void recycle() { 43 super.recycle(); 44 } 45 46 public int doAfterBody() throws SAXException { 47 if (content != null) { 48 String value = content.getContent().toString(); 49 ((UIOutput)getComponentInstance()).setValue(value); 50 } 51 52 return getDoAfterBody(); 53 } 54 } 55 | Popular Tags |