code: public void encodeAll(FacesContext context) throws IOException {
  
          if (context == null) {
              throw new NullPointerException();
          }
  
          if (!isRendered()) {
              return;
          }
  
          encodeBegin(context);
          if (getRendersChildren()) {
              encodeChildren(context);
          } else if (this.getChildCount() > 0) {
              for (UIComponent kid : getChildren()) {
                  kid.encodeAll(context);
              }
          }
  
          encodeEnd(context);
  
      }
docs: <p>If this component
  returns <code>true</code> from {@link #isRendered}, take the
  following action.</p>
  
  <p>Render this component and all its children that return
  <code>true</code> from <code>isRendered()</code>, regardless of
  the value of the {@link #getRendersChildren} flag.</p></li>
  
  @since 1.2
  
  @throws IOException if an input/output error occurs while rendering
  @throws NullPointerException if <code>context</code>
  is <code>null</code>