org.apache.cocoon.faces.samples.components.renderkit
Class Util

java.lang.Object
  extended by org.apache.cocoon.faces.samples.components.renderkit.Util

public class Util
extends Object

Util is a class which houses common functionality used by other classes.

Version:
$Id: Util.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Method Summary
static javax.faces.el.MethodBinding createConstantMethodBinding(String outcome)
           
static String generateId()
          Generate a new identifier currently used to uniquely identify components.
static javax.faces.el.ValueBinding getValueBinding(String valueRef)
           
static Class loadClass(String name)
           
static String renderBooleanPassthruAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render any boolean "passthru" attributes.
static String renderPassthruAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render any "passthru" attributes, where we simply just output the raw name and value of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadClass

public static Class loadClass(String name)
                       throws ClassNotFoundException
Throws:
ClassNotFoundException

generateId

public static String generateId()
Generate a new identifier currently used to uniquely identify components.


renderBooleanPassthruAttributes

public static String renderBooleanPassthruAttributes(javax.faces.context.FacesContext context,
                                                     javax.faces.component.UIComponent component)
Render any boolean "passthru" attributes.

See Also:
passthruAttributes

renderPassthruAttributes

public static String renderPassthruAttributes(javax.faces.context.FacesContext context,
                                              javax.faces.component.UIComponent component)
Render any "passthru" attributes, where we simply just output the raw name and value of the attribute. This method is aware of the set of HTML4 attributes that fall into this bucket. Examples are all the javascript attributes, alt, rows, cols, etc.

Returns:
the rendererd attributes as specified in the component. Padded with leading and trailing ' '. If there are no passthru attributes in the component, return the empty String.
See Also:
passthruAttributes

getValueBinding

public static javax.faces.el.ValueBinding getValueBinding(String valueRef)

createConstantMethodBinding

public static javax.faces.el.MethodBinding createConstantMethodBinding(String outcome)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.