myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1466416 - /myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java
Date Wed, 10 Apr 2013 10:34:46 GMT
Author: lofwyr
Date: Wed Apr 10 10:34:45 2013
New Revision: 1466416

URL: http://svn.apache.org/r1466416
Log:
TOBAGO-1246: ClassCastException in tc:toolBarSelectOne

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java?rev=1466416&r1=1466415&r2=1466416&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java
Wed Apr 10 10:34:45 2013
@@ -47,12 +47,12 @@ import java.util.List;
 public class SelectOneRadioRenderer extends SelectOneRendererBase {
 
   public void prepareRender(FacesContext facesContext, UIComponent component) throws IOException
{
-    UISelectOneRadio select = (UISelectOneRadio) component;
+    UISelectOne select = (UISelectOne) component;
     super.prepareRender(facesContext, select);
       FacesContextUtils.addOnloadScript(facesContext, "Tobago.selectOneRadioInit('"
           + select.getClientId(facesContext) + "')");
-    if (select.isInline()) {
-      ComponentUtils.addCurrentMarkup(select, Markup.INLINE);
+    if (select instanceof UISelectOneRadio && ((UISelectOneRadio)select).isInline())
{
+      ComponentUtils.addCurrentMarkup(((UISelectOneRadio)select), Markup.INLINE);
     }
   }
 



Mime
View raw message