org.apache.myfaces.wap.renderkit
Class WmlRenderUtils

java.lang.Object
  extended byorg.apache.myfaces.wap.renderkit.WmlRenderUtils

public class WmlRenderUtils
extends java.lang.Object

Version:
$Revision: 1.1 $ $Date: 2004/12/30 09:37:27 $ $Log: WmlRenderUtils.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
WmlRenderUtils()
           
 
Method Summary
static void writeOption(javax.faces.model.SelectItem item, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Writes one option element for the select tag.
static void writeOptions(java.lang.Object items, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Writes options for the select element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WmlRenderUtils

public WmlRenderUtils()
Method Detail

writeOptions

public static void writeOptions(java.lang.Object items,
                                javax.faces.component.UIComponent component,
                                javax.faces.context.ResponseWriter writer)
                         throws java.io.IOException
Writes options for the select element.

Parameters:
items - is an instance of SelectItem or SelectItemGroup object. Alternatively array, collection or map of SelectItem objects.
Throws:
java.io.IOException

writeOption

public static void writeOption(javax.faces.model.SelectItem item,
                               javax.faces.component.UIComponent component,
                               javax.faces.context.ResponseWriter writer)
                        throws java.io.IOException
Writes one option element for the select tag.

Throws:
java.io.IOException