You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/05/04 16:57:53 UTC

svn commit: r535276 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java

Author: bommel
Date: Fri May  4 07:57:52 2007
New Revision: 535276

URL: http://svn.apache.org/viewvc?view=rev&rev=535276
Log:
(TOBAGO-383) SelectOneRadio doesn't render the style attribute

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java?view=diff&rev=535276&r1=535275&r2=535276
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SelectOneRadioRenderer.java Fri May  4 07:57:52 2007
@@ -28,6 +28,7 @@
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_INLINE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_REQUIRED;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_STYLE;
 import org.apache.myfaces.tobago.component.ComponentUtil;
 import org.apache.myfaces.tobago.renderkit.SelectOneRendererBase;
 import org.apache.myfaces.tobago.renderkit.RenderUtil;
@@ -55,7 +56,7 @@
     UISelectOne component = (UISelectOne) uiComponent;
     String clientId = component.getClientId(facesContext);
 
-    ComponentUtil.findPage(component).getOnloadScripts().add("Tobago.selectOneRadioInit('" + clientId + "')");
+    ComponentUtil.findPage(facesContext, component).getOnloadScripts().add("Tobago.selectOneRadioInit('" + clientId + "')");
 
     if (LOG.isDebugEnabled()) {
       for (Object o : component.getChildren()) {
@@ -84,6 +85,7 @@
       writer.writeAttribute(HtmlAttributes.CELLSPACING, "0", null);
       writer.writeAttribute(HtmlAttributes.CELLPADDING, "0", null);
       writer.writeAttribute(HtmlAttributes.SUMMARY, "", null);
+      writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
       writer.writeAttribute(HtmlAttributes.TITLE, null, ATTR_TIP);
     }