1 16 package org.apache.myfaces.renderkit.html; 17 18 import org.apache.commons.logging.Log; 19 import org.apache.commons.logging.LogFactory; 20 21 import javax.faces.component.UIComponent; 22 import javax.faces.context.FacesContext; 23 import javax.faces.render.Renderer; 24 import java.io.IOException ; 25 26 27 44 public abstract class HtmlRenderer 45 extends Renderer 46 { 47 private static final Log log = LogFactory.getLog(HtmlRenderer.class); 48 49 public void encodeChildren(FacesContext context, UIComponent component) 50 throws IOException 51 { 52 if (log.isWarnEnabled()) 53 { 54 if (getRendersChildren()) 55 { 56 log.warn("Renderer " + getClass().getName() + " renders its children and should therefore implement encodeChildren."); 57 } 58 else 59 { 60 log.warn("Renderer " + getClass().getName() + " does not render its children. Method encodeChildren should not be called."); 61 } 62 } 63 } 64 } 65 | Popular Tags |