1 17 package org.alfresco.web.ui.common.component; 18 19 import java.io.IOException ; 20 21 import javax.faces.component.UIComponentBase; 22 import javax.faces.context.ResponseWriter; 23 24 25 28 public abstract class SelfRenderingComponent extends UIComponentBase 29 { 30 33 public SelfRenderingComponent() 34 { 35 setRendererType(null); 38 } 39 40 49 protected static void outputAttribute(ResponseWriter out, Object attr, String mapping) 50 throws IOException  51 { 52 if (attr != null) 53 { 54 out.write(' '); 55 out.write(mapping); 56 out.write("=\""); 57 out.write(attr.toString()); 58 out.write('"'); 59 } 60 } 61 } 62 | Popular Tags |