org.sakaiproject.tool.assessment.jsf.renderer.util
Class RendererUtil

java.lang.Object
  extended by org.sakaiproject.tool.assessment.jsf.renderer.util.RendererUtil

public class RendererUtil
extends Object

Place for common utilities for renderers

Version:
$Id: RendererUtil.java 59684 2009-04-03 23:33:27Z arwhyte@umich.edu $
Author:
Ed Smiley esmiley@stanford.edu

Constructor Summary
RendererUtil()
           
 
Method Summary
static void encodeRecursive(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Helper method for recursively encoding a component.
static boolean isDisabledOrReadonly(javax.faces.component.UIComponent component)
          If renderer supports disabled or readonly attributes use this method to obtain an early exit from decode method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererUtil

public RendererUtil()
Method Detail

encodeRecursive

public static void encodeRecursive(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component)
                            throws IOException
Helper method for recursively encoding a component.

Parameters:
context - the given FacesContext
component - the UIComponent to render
Throws:
IOException

isDisabledOrReadonly

public static boolean isDisabledOrReadonly(javax.faces.component.UIComponent component)
If renderer supports disabled or readonly attributes use this method to obtain an early exit from decode method. Good idea to include it anyway, compnent will continue to work when these properties are added.

Parameters:
component -
Returns:


Copyright © 2005-2012 Sakai Project. All Rights Reserved.