1 16 package org.apache.myfaces.wap.renderkit.wml; 17 18 import javax.faces.component.UIComponent; 19 import javax.faces.context.FacesContext; 20 21 import org.apache.commons.logging.Log; 22 import org.apache.commons.logging.LogFactory; 23 import org.apache.myfaces.wap.renderkit.RendererUtils; 24 import org.apache.myfaces.wap.renderkit.WmlRenderer; 25 26 27 35 public class GroupRenderer extends WmlRenderer { 36 private static Log log = LogFactory.getLog(GroupRenderer.class); 37 38 39 public GroupRenderer() { 40 super(); 41 log.debug("created object " + this.getClass().getName()); 42 } 43 44 public boolean getRendersChildren(){ 45 return(true); 46 } 47 48 public void encodeBegin(FacesContext context, UIComponent component) throws java.io.IOException { 49 log.debug("encodeBegin(" + component.getId() + ")"); 50 51 if (context == null || component == null) { 52 throw new NullPointerException (); 53 } 54 if (!component.isRendered()) return; 55 } 57 58 public void encodeChildren(FacesContext context, UIComponent component) throws java.io.IOException { 59 log.debug("encodeChildren(" + component.getId() + ")"); 60 if (context == null || component == null) { 61 throw new NullPointerException (); 62 } 63 if (!component.isRendered()) return; 64 65 } 67 68 public void encodeEnd(FacesContext context, UIComponent component) throws java.io.IOException { 69 log.debug("encodeEnd(" + component.getId() + ")"); 70 if (context == null || component == null) { 71 throw new NullPointerException (); 72 } 73 if (!component.isRendered()) return; 74 75 RendererUtils.renderChildren(context, component); 76 } 77 78 public void decode(FacesContext context, UIComponent component) { 79 if (component == null ) throw new NullPointerException (); 80 } 81 } 82 83 | Popular Tags |