org.apache.myfaces.test.utils
Class TestUtils

java.lang.Object
  extended by org.apache.myfaces.test.utils.TestUtils

public final class TestUtils
extends Object


Method Summary
static void addDefaultRenderers(javax.faces.context.FacesContext facesContext)
          Add all of Tomahawk's renderers.
static void addRenderer(javax.faces.context.FacesContext facesContext, String family, String rendererType, String renderClassName)
          Add a renderer to the FacesContext.
static void renderComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Renderered a component, including it's children, then complete the reponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addDefaultRenderers

public static void addDefaultRenderers(javax.faces.context.FacesContext facesContext)
Add all of Tomahawk's renderers. Currently this is not tied to faces-config.xml, so all change to the file MUST also be made here.

Parameters:
facesContext -

addRenderer

public static void addRenderer(javax.faces.context.FacesContext facesContext,
                               String family,
                               String rendererType,
                               String renderClassName)
Add a renderer to the FacesContext.

Parameters:
facesContext - Faces Context
family - Componenet Family
rendererType - Component Type
renderClassName - Class Name of Renderer

renderComponent

public static void renderComponent(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component)
                            throws IOException
Renderered a component, including it's children, then complete the reponse.

Parameters:
context - Faces Context
component - Component to be rendered.
Throws:
IOException - Thrown while rendering.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.