Added: myfaces/site/javadoc/org/apache/myfaces/renderkit/RendererUtils.html URL: http://svn.apache.org/viewcvs/myfaces/site/javadoc/org/apache/myfaces/renderkit/RendererUtils.html?rev=167885&view=auto ============================================================================== --- myfaces/site/javadoc/org/apache/myfaces/renderkit/RendererUtils.html (added) +++ myfaces/site/javadoc/org/apache/myfaces/renderkit/RendererUtils.html Tue May 3 02:06:41 2005 @@ -0,0 +1,927 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.4.2_05) on Tue May 03 10:59:29 CEST 2005 --> +<TITLE> +RendererUtils (Apache MyFaces API Documentation) +</TITLE> + +<META NAME="keywords" CONTENT="org.apache.myfaces.renderkit.RendererUtils class"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + parent.document.title="RendererUtils (Apache MyFaces API Documentation)"; +} +</SCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" title="Skip navigation links"></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> +<TR> +<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_top_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../org/apache/myfaces/renderkit/MyfacesResponseStateManager.html" title="class in org.apache.myfaces.renderkit"><B>PREV CLASS</B></A> + <A HREF="../../../../org/apache/myfaces/renderkit/RenderKitFactoryImpl.html" title="class in org.apache.myfaces.renderkit"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> + <A HREF="RendererUtils.html" target="_top"><B>NO FRAMES</B></A> + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<NOSCRIPT> + <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> +</NOSCRIPT> + +</FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +org.apache.myfaces.renderkit</FONT> +<BR> +Class RendererUtils</H2> +<PRE> +java.lang.Object + <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.myfaces.renderkit.RendererUtils</B> +</PRE> +<HR> +<DL> +<DT>public class <B>RendererUtils</B><DT>extends java.lang.Object</DL> + +<P> +<DL> +<DT><B>Version:</B></DT> + <DD>$Revision: 167744 $ $Date: 2005-04-06 12:21:55 +0200 (Wed, 06 Apr 2005) $ + $Log$ + Revision 1.23 2005/04/06 10:21:55 manolito + MYFACES-149 fix for NullPointerException in _SharedRendererUtils.getConvertedUISelectManyValue + + Revision 1.22 2005/01/26 13:27:16 mmarinschek + The x:message tags are now extended to use the column-name as a label for all inputs in an x:dataTable, without having to specify additional information. + + Revision 1.21 2005/01/22 16:47:17 mmarinschek + fixing bug with validation not called if the submitted value is empty; an empty string is submitted instead if the component is enabled. + + Revision 1.20 2005/01/18 22:43:05 svieujot + Fix some bugs where converter wasn't used to determine selected values. + This caused for examples the list, checkbox and radio based components to bug when the backing bean value type is a primitive. + + Revision 1.19 2005/01/09 18:15:12 mmarinschek + small changes - better error handling, label renderer supports more hooks for sub-classes + + Revision 1.18 2005/01/07 01:54:35 svieujot + radioRenderer wasn't looking at the submitted value. + + Revision 1.17 2005/01/05 23:06:43 svieujot + Fix bug : checkbox wasn't looking at the submitted value. + + Revision 1.16 2004/12/14 14:12:33 mmarinschek + PR: + Obtained from: + Submitted by: + Reviewed by: + + Revision 1.15 2004/12/09 12:18:43 mmarinschek + changes in Calendar-Renderer to check for submitted-value first + + Revision 1.14 2004/10/13 11:51:01 matze + renamed packages to org.apache + + Revision 1.13 2004/09/06 08:41:49 tinytoony + changes to calendar - rendering wrong weekday, check output-text behavior + + Revision 1.12 2004/07/01 22:01:18 mwessendorf + ASF switch + + Revision 1.11 2004/06/23 12:42:26 tinytoony + just a tad more information ;) + + Revision 1.10 2004/05/18 14:31:40 manolito + user role support completely moved to components source tree + + Revision 1.9 2004/04/28 10:38:33 tinytoony + child is of type added to exception message + + Revision 1.8 2004/04/28 10:37:14 tinytoony + child is of type added to exception message + + Revision 1.7 2004/04/28 08:17:11 tinytoony + child is of type added to exception message + + Revision 1.6 2004/04/07 08:21:10 manolito + handling of select items with label == null + + Revision 1.5 2004/04/06 15:33:21 manolito + getStringValue must return submitted value if any</DD> +<DT><B>Author:</B></DT> + <DD>Manfred Geiler (latest modification by $Author: manolito $)</DD> +</DL> +<HR> + +<P> +<!-- ======== NESTED CLASS SUMMARY ======== --> + + +<!-- =========== FIELD SUMMARY =========== --> + +<A NAME="field_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Field Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#EMPTY_STRING">EMPTY_STRING</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#SELECT_ITEM_LIST_ATTR">SELECT_ITEM_LIST_ATTR</A></B></CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#RendererUtils()">RendererUtils</A></B>()</CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Method Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#checkParamValidity(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Class)">checkParamValidity</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent uiComponent, + java.lang.Class compClass)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#copyHtmlInputTextAttributes(javax.faces.component.html.HtmlInputText, javax.faces.component.html.HtmlInputText)">copyHtmlInputTextAttributes</A></B>(javax.faces.component.html.HtmlInputText src, + javax.faces.component.html.HtmlInputText dest)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static javax.faces.component.UIForm</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#findParentForm(javax.faces.component.UIComponentBase)">findParentForm</A></B>(javax.faces.component.UIComponentBase comp)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static javax.faces.convert.Converter</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#findUIOutputConverter(javax.faces.context.FacesContext, javax.faces.component.UIOutput)">findUIOutputConverter</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIOutput component)</CODE> + +<BR> + Find the proper Converter for the given UIOutput component.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static javax.faces.convert.Converter</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#findUISelectManyConverter(javax.faces.context.FacesContext, javax.faces.component.UISelectMany)">findUISelectManyConverter</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UISelectMany component)</CODE> + +<BR> + Find proper Converter for the entries in the associated List or Array of + the given UISelectMany as specified in API Doc of UISelectMany.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getBooleanAttribute(javax.faces.component.UIComponent, java.lang.String, boolean)">getBooleanAttribute</A></B>(javax.faces.component.UIComponent component, + java.lang.String attrName, + boolean defaultValue)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.Boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getBooleanValue(javax.faces.component.UIComponent)">getBooleanValue</A></B>(javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConcatenatedId(javax.faces.context.FacesContext, javax.faces.component.UIComponent)">getConcatenatedId</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConcatenatedId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)">getConcatenatedId</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent container, + java.lang.String clientId)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConvertedStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, java.lang.Object)">getConvertedStringValue</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + java.lang.Object value)</CODE> + +<BR> + Convenient utility method that returns the currently given value as String, + using the given converter. + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConvertedStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.model.SelectItem)">getConvertedStringValue</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.model.SelectItem selectItem)</CODE> + +<BR> + Convenient utility method that returns the currently given SelectItem value + as String, using the given converter. + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.Object</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConvertedUIOutputValue(javax.faces.context.FacesContext, javax.faces.component.UIOutput, java.lang.Object)">getConvertedUIOutputValue</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIOutput output, + java.lang.Object submittedValue)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.Object</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getConvertedUISelectManyValue(javax.faces.context.FacesContext, javax.faces.component.UISelectMany, java.lang.Object)">getConvertedUISelectManyValue</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UISelectMany selectMany, + java.lang.Object submittedValue)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.util.Date</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getDateValue(javax.faces.component.UIComponent)">getDateValue</A></B>(javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static int</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getIntegerAttribute(javax.faces.component.UIComponent, java.lang.String, int)">getIntegerAttribute</A></B>(javax.faces.component.UIComponent component, + java.lang.String attrName, + int defaultValue)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getPathToComponent(javax.faces.component.UIComponent)">getPathToComponent</A></B>(javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.util.Set</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getSelectedValuesAsSet(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.component.UISelectMany)">getSelectedValuesAsSet</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.component.UISelectMany uiSelectMany)</CODE> + +<BR> + Convenient utility method that returns the currently selected values of + a UISelectMany component as a Set, of which the contains method can then be + easily used to determine if a value is currently selected. + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.util.List</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getSelectItemList(javax.faces.component.UISelectMany)">getSelectItemList</A></B>(javax.faces.component.UISelectMany uiSelectMany)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.util.List</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getSelectItemList(javax.faces.component.UISelectOne)">getSelectItemList</A></B>(javax.faces.component.UISelectOne uiSelectOne)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent)">getStringValue</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.util.Set</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#getSubmittedValuesAsSet(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.component.UISelectMany)">getSubmittedValuesAsSet</A></B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.component.UISelectMany uiSelectMany)</CODE> + +<BR> + Convenient utility method that returns the currently submitted values of + a UISelectMany component as a Set, of which the contains method can then be + easily used to determine if a select item is currently selected. + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#isDefaultAttributeValue(java.lang.Object)">isDefaultAttributeValue</A></B>(java.lang.Object value)</CODE> + +<BR> + See JSF Spec. 8.5 Table 8-1</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#renderChild(javax.faces.context.FacesContext, javax.faces.component.UIComponent)">renderChild</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent child)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../org/apache/myfaces/renderkit/RendererUtils.html#renderChildren(javax.faces.context.FacesContext, javax.faces.component.UIComponent)">renderChildren</A></B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent component)</CODE> + +<BR> + </TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TD><B>Methods inherited from class java.lang.Object</B></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> +</TR> +</TABLE> + +<P> + +<!-- ============ FIELD DETAIL =========== --> + +<A NAME="field_detail"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Field Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="SELECT_ITEM_LIST_ATTR"><!-- --></A><H3> +SELECT_ITEM_LIST_ATTR</H3> +<PRE> +public static final java.lang.String <B>SELECT_ITEM_LIST_ATTR</B></PRE> +<DL> +<DL> +</DL> +</DL> +<HR> + +<A NAME="EMPTY_STRING"><!-- --></A><H3> +EMPTY_STRING</H3> +<PRE> +public static final java.lang.String <B>EMPTY_STRING</B></PRE> +<DL> +<DL> +</DL> +</DL> + +<!-- ========= CONSTRUCTOR DETAIL ======== --> + +<A NAME="constructor_detail"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Constructor Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="RendererUtils()"><!-- --></A><H3> +RendererUtils</H3> +<PRE> +public <B>RendererUtils</B>()</PRE> +<DL> +</DL> + +<!-- ============ METHOD DETAIL ========== --> + +<A NAME="method_detail"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Method Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="getPathToComponent(javax.faces.component.UIComponent)"><!-- --></A><H3> +getPathToComponent</H3> +<PRE> +public static java.lang.String <B>getPathToComponent</B>(javax.faces.component.UIComponent component)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getConcatenatedId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)"><!-- --></A><H3> +getConcatenatedId</H3> +<PRE> +public static java.lang.String <B>getConcatenatedId</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent container, + java.lang.String clientId)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getConcatenatedId(javax.faces.context.FacesContext, javax.faces.component.UIComponent)"><!-- --></A><H3> +getConcatenatedId</H3> +<PRE> +public static java.lang.String <B>getConcatenatedId</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getBooleanValue(javax.faces.component.UIComponent)"><!-- --></A><H3> +getBooleanValue</H3> +<PRE> +public static java.lang.Boolean <B>getBooleanValue</B>(javax.faces.component.UIComponent component)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getDateValue(javax.faces.component.UIComponent)"><!-- --></A><H3> +getDateValue</H3> +<PRE> +public static java.util.Date <B>getDateValue</B>(javax.faces.component.UIComponent component)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent)"><!-- --></A><H3> +getStringValue</H3> +<PRE> +public static java.lang.String <B>getStringValue</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent component)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="isDefaultAttributeValue(java.lang.Object)"><!-- --></A><H3> +isDefaultAttributeValue</H3> +<PRE> +public static boolean <B>isDefaultAttributeValue</B>(java.lang.Object value)</PRE> +<DL> +<DD>See JSF Spec. 8.5 Table 8-1 +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>value</CODE> - +<DT><B>Returns:</B><DD></DL> +</DD> +</DL> +<HR> + +<A NAME="findUIOutputConverter(javax.faces.context.FacesContext, javax.faces.component.UIOutput)"><!-- --></A><H3> +findUIOutputConverter</H3> +<PRE> +public static javax.faces.convert.Converter <B>findUIOutputConverter</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIOutput component) + throws javax.faces.FacesException</PRE> +<DL> +<DD>Find the proper Converter for the given UIOutput component. +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>the Converter or null if no Converter specified or needed +<DT><B>Throws:</B> +<DD><CODE>javax.faces.FacesException</CODE> - if the Converter could not be created</DL> +</DD> +</DL> +<HR> + +<A NAME="findUISelectManyConverter(javax.faces.context.FacesContext, javax.faces.component.UISelectMany)"><!-- --></A><H3> +findUISelectManyConverter</H3> +<PRE> +public static javax.faces.convert.Converter <B>findUISelectManyConverter</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UISelectMany component)</PRE> +<DL> +<DD>Find proper Converter for the entries in the associated List or Array of + the given UISelectMany as specified in API Doc of UISelectMany. +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>the Converter or null if no Converter specified or needed +<DT><B>Throws:</B> +<DD><CODE>javax.faces.FacesException</CODE> - if the Converter could not be created</DL> +</DD> +</DL> +<HR> + +<A NAME="checkParamValidity(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Class)"><!-- --></A><H3> +checkParamValidity</H3> +<PRE> +public static void <B>checkParamValidity</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent uiComponent, + java.lang.Class compClass)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="renderChildren(javax.faces.context.FacesContext, javax.faces.component.UIComponent)"><!-- --></A><H3> +renderChildren</H3> +<PRE> +public static void <B>renderChildren</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent component) + throws java.io.IOException</PRE> +<DL> +<DD><DL> + +<DT><B>Throws:</B> +<DD><CODE>java.io.IOException</CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="renderChild(javax.faces.context.FacesContext, javax.faces.component.UIComponent)"><!-- --></A><H3> +renderChild</H3> +<PRE> +public static void <B>renderChild</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIComponent child) + throws java.io.IOException</PRE> +<DL> +<DD><DL> + +<DT><B>Throws:</B> +<DD><CODE>java.io.IOException</CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="getSelectItemList(javax.faces.component.UISelectOne)"><!-- --></A><H3> +getSelectItemList</H3> +<PRE> +public static java.util.List <B>getSelectItemList</B>(javax.faces.component.UISelectOne uiSelectOne)</PRE> +<DL> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>uiSelectOne</CODE> - +<DT><B>Returns:</B><DD>List of SelectItem Objects</DL> +</DD> +</DL> +<HR> + +<A NAME="getSelectItemList(javax.faces.component.UISelectMany)"><!-- --></A><H3> +getSelectItemList</H3> +<PRE> +public static java.util.List <B>getSelectItemList</B>(javax.faces.component.UISelectMany uiSelectMany)</PRE> +<DL> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>uiSelectMany</CODE> - +<DT><B>Returns:</B><DD>List of SelectItem Objects</DL> +</DD> +</DL> +<HR> + +<A NAME="getSubmittedValuesAsSet(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.component.UISelectMany)"><!-- --></A><H3> +getSubmittedValuesAsSet</H3> +<PRE> +public static java.util.Set <B>getSubmittedValuesAsSet</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.component.UISelectMany uiSelectMany)</PRE> +<DL> +<DD>Convenient utility method that returns the currently submitted values of + a UISelectMany component as a Set, of which the contains method can then be + easily used to determine if a select item is currently selected. + Calling the contains method of this Set with the renderable (String converted) item value + as argument returns true if this item is selected. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>uiSelectMany</CODE> - +<DT><B>Returns:</B><DD>Set containing all currently selected values</DL> +</DD> +</DL> +<HR> + +<A NAME="getSelectedValuesAsSet(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.component.UISelectMany)"><!-- --></A><H3> +getSelectedValuesAsSet</H3> +<PRE> +public static java.util.Set <B>getSelectedValuesAsSet</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.component.UISelectMany uiSelectMany)</PRE> +<DL> +<DD>Convenient utility method that returns the currently selected values of + a UISelectMany component as a Set, of which the contains method can then be + easily used to determine if a value is currently selected. + Calling the contains method of this Set with the item value + as argument returns true if this item is selected. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>uiSelectMany</CODE> - +<DT><B>Returns:</B><DD>Set containing all currently selected values</DL> +</DD> +</DL> +<HR> + +<A NAME="getConvertedStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, java.lang.Object)"><!-- --></A><H3> +getConvertedStringValue</H3> +<PRE> +public static java.lang.String <B>getConvertedStringValue</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + java.lang.Object value)</PRE> +<DL> +<DD>Convenient utility method that returns the currently given value as String, + using the given converter. + Especially usefull for dealing with primitive types. +<P> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getConvertedStringValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.convert.Converter, javax.faces.model.SelectItem)"><!-- --></A><H3> +getConvertedStringValue</H3> +<PRE> +public static java.lang.String <B>getConvertedStringValue</B>(javax.faces.context.FacesContext context, + javax.faces.component.UIComponent component, + javax.faces.convert.Converter converter, + javax.faces.model.SelectItem selectItem)</PRE> +<DL> +<DD>Convenient utility method that returns the currently given SelectItem value + as String, using the given converter. + Especially usefull for dealing with primitive types. +<P> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getConvertedUIOutputValue(javax.faces.context.FacesContext, javax.faces.component.UIOutput, java.lang.Object)"><!-- --></A><H3> +getConvertedUIOutputValue</H3> +<PRE> +public static java.lang.Object <B>getConvertedUIOutputValue</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UIOutput output, + java.lang.Object submittedValue) + throws javax.faces.convert.ConverterException</PRE> +<DL> +<DD><DL> + +<DT><B>Throws:</B> +<DD><CODE>javax.faces.convert.ConverterException</CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="getConvertedUISelectManyValue(javax.faces.context.FacesContext, javax.faces.component.UISelectMany, java.lang.Object)"><!-- --></A><H3> +getConvertedUISelectManyValue</H3> +<PRE> +public static java.lang.Object <B>getConvertedUISelectManyValue</B>(javax.faces.context.FacesContext facesContext, + javax.faces.component.UISelectMany selectMany, + java.lang.Object submittedValue) + throws javax.faces.convert.ConverterException</PRE> +<DL> +<DD><DL> + +<DT><B>Throws:</B> +<DD><CODE>javax.faces.convert.ConverterException</CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="getBooleanAttribute(javax.faces.component.UIComponent, java.lang.String, boolean)"><!-- --></A><H3> +getBooleanAttribute</H3> +<PRE> +public static boolean <B>getBooleanAttribute</B>(javax.faces.component.UIComponent component, + java.lang.String attrName, + boolean defaultValue)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getIntegerAttribute(javax.faces.component.UIComponent, java.lang.String, int)"><!-- --></A><H3> +getIntegerAttribute</H3> +<PRE> +public static int <B>getIntegerAttribute</B>(javax.faces.component.UIComponent component, + java.lang.String attrName, + int defaultValue)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="findParentForm(javax.faces.component.UIComponentBase)"><!-- --></A><H3> +findParentForm</H3> +<PRE> +public static javax.faces.component.UIForm <B>findParentForm</B>(javax.faces.component.UIComponentBase comp)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="copyHtmlInputTextAttributes(javax.faces.component.html.HtmlInputText, javax.faces.component.html.HtmlInputText)"><!-- --></A><H3> +copyHtmlInputTextAttributes</H3> +<PRE> +public static void <B>copyHtmlInputTextAttributes</B>(javax.faces.component.html.HtmlInputText src, + javax.faces.component.html.HtmlInputText dest)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + + +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<A NAME="navbar_bottom"><!-- --></A> +<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> +<TR> +<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_bottom_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../org/apache/myfaces/renderkit/MyfacesResponseStateManager.html" title="class in org.apache.myfaces.renderkit"><B>PREV CLASS</B></A> + <A HREF="../../../../org/apache/myfaces/renderkit/RenderKitFactoryImpl.html" title="class in org.apache.myfaces.renderkit"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> + <A HREF="RendererUtils.html" target="_top"><B>NO FRAMES</B></A> + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<NOSCRIPT> + <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> +</NOSCRIPT> + +</FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> + +</BODY> +</HTML>
