org.apache.myfaces.wap.renderkit
Class RendererUtils

java.lang.Object
  |
  +--org.apache.myfaces.wap.renderkit.RendererUtils

public class RendererUtils
extends java.lang.Object

Version:
$Revision: 1.1 $ $Date: 2004/12/30 09:37:27 $ $Log: RendererUtils.java,v $ Revision 1.1 2004/12/30 09:37:27 matzew added a new RenderKit for WML. Thanks to Jir� �aloudek
Author:
Jiri Zaloudek (latest modification by $Author: matzew $)

Constructor Summary
RendererUtils()
           
 
Method Summary
static java.lang.Object convertToObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Converts submitted value to Object (local component value)
static java.lang.String convertToString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Converts value of compoent to String
static java.lang.Object convertUISelectManyToObject(javax.faces.context.FacesContext context, javax.faces.component.UISelectMany component, java.lang.Object value)
           
static java.lang.String getAttribute(javax.faces.component.UIComponent comp, java.lang.String attribute)
           
static java.lang.String getCurrentUrl(javax.faces.context.FacesContext context)
           
static java.util.Set getInputTags(java.util.List components)
          Returns all input components(input, select, option...) from the list of components(type UICommponents).
static java.lang.String insertGetParam(java.lang.String href, java.lang.String param, java.lang.String value, java.lang.String encoding)
          Insert parameter and its value to href.
static void renderChild(javax.faces.context.FacesContext context, javax.faces.component.UIComponent child)
           
static void renderChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
static void writeAttribute(java.lang.String attribute, java.lang.Object value, javax.faces.context.ResponseWriter writer)
          write attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererUtils

public RendererUtils()
Method Detail

getCurrentUrl

public static java.lang.String getCurrentUrl(javax.faces.context.FacesContext context)

writeAttribute

public static void writeAttribute(java.lang.String attribute,
                                  java.lang.Object value,
                                  javax.faces.context.ResponseWriter writer)
write attribute


convertToObject

public static java.lang.Object convertToObject(javax.faces.context.FacesContext context,
                                               javax.faces.component.UIComponent component)
Converts submitted value to Object (local component value)


convertToString

public static java.lang.String convertToString(javax.faces.context.FacesContext facesContext,
                                               javax.faces.component.UIComponent component)
Converts value of compoent to String


convertUISelectManyToObject

public static java.lang.Object convertUISelectManyToObject(javax.faces.context.FacesContext context,
                                                           javax.faces.component.UISelectMany component,
                                                           java.lang.Object value)

renderChildren

public static void renderChildren(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component)
                           throws java.io.IOException
java.io.IOException

renderChild

public static void renderChild(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent child)
                        throws java.io.IOException
java.io.IOException

insertGetParam

public static java.lang.String insertGetParam(java.lang.String href,
                                              java.lang.String param,
                                              java.lang.String value,
                                              java.lang.String encoding)
                                       throws java.io.IOException
Insert parameter and its value to href. Insert correct separator '?' or '&'

java.io.IOException

getInputTags

public static java.util.Set getInputTags(java.util.List components)
Returns all input components(input, select, option...) from the list of components(type UICommponents).

Parameters:
components - the list of components.
Returns:
Set of UIComponent - all input components from the list. If no input tag was found, return empty set.

getAttribute

public static java.lang.String getAttribute(javax.faces.component.UIComponent comp,
                                            java.lang.String attribute)