myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject cvs commit: incubator-myfaces/src/share/org/apache/myfaces/renderkit/html HtmlRadioRendererBase.java
Date Wed, 19 Jan 2005 13:34:13 GMT
mmarinschek    2005/01/19 05:34:12

  Modified:    src/share/org/apache/myfaces/renderkit/html
                        HtmlRadioRendererBase.java
  Log:
  handle case that converter is null
  
  Revision  Changes    Path
  1.13      +17 -3     incubator-myfaces/src/share/org/apache/myfaces/renderkit/html/HtmlRadioRendererBase.java
  
  Index: HtmlRadioRendererBase.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/share/org/apache/myfaces/renderkit/html/HtmlRadioRendererBase.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- HtmlRadioRendererBase.java	19 Jan 2005 13:18:04 -0000	1.12
  +++ HtmlRadioRendererBase.java	19 Jan 2005 13:34:12 -0000	1.13
  @@ -40,6 +40,9 @@
    * @author Thomas Spiegl
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.13  2005/01/19 13:34:12  mmarinschek
  + * handle case that converter is null
  + *
    * Revision 1.12  2005/01/19 13:18:04  mmarinschek
    * better logging of component information
    *
  @@ -134,7 +137,18 @@
           }
   
           Object currentValue = selectOne.getValue();
  -        String currentValueStr = currentValue==null ? null : converter.getAsString(facesContext,
selectOne, currentValue);
  +
  +
  +        String currentValueStr = null;
  +
  +        if(converter==null)
  +        {
  +            currentValueStr = currentValue==null ? null : currentValue.toString();
  +        }
  +        else
  +        {
  +            currentValueStr = currentValue==null?null:converter.getAsString(facesContext,
selectOne, currentValue);
  +        }
   
           for (Iterator it = selectItemList.iterator(); it.hasNext(); )
           {
  
  
  

Mime
View raw message