You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/04/30 10:41:47 UTC
svn commit: r1332117 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java
Author: lofwyr
Date: Mon Apr 30 08:41:47 2012
New Revision: 1332117
URL: http://svn.apache.org/viewvc?rev=1332117&view=rev
Log:
TOBAGO-1114: showCheckbox attribute of tc:treeSelect has no effect
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java?rev=1332117&r1=1332116&r2=1332117&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeSelectRenderer.java Mon Apr 30 08:41:47 2012
@@ -43,13 +43,15 @@ public class TreeSelectRenderer extends
TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
- writer.startElement(HtmlElements.INPUT, null);
- writer.writeAttribute(HtmlAttributes.TYPE, HtmlInputTypes.CHECKBOX, false);
- writer.writeAttribute(HtmlAttributes.VALUE, "true", false);
- writer.writeNameAttribute(id);
- writer.writeIdAttribute(id);
- writer.writeAttribute(HtmlAttributes.CHECKED, checked);
- writer.endElement(HtmlElements.INPUT);
+ if (select.isShowCheckbox()) {
+ writer.startElement(HtmlElements.INPUT, null);
+ writer.writeAttribute(HtmlAttributes.TYPE, HtmlInputTypes.CHECKBOX, false);
+ writer.writeAttribute(HtmlAttributes.VALUE, "true", false);
+ writer.writeNameAttribute(id);
+ writer.writeIdAttribute(id);
+ writer.writeAttribute(HtmlAttributes.CHECKED, checked);
+ writer.endElement(HtmlElements.INPUT);
+ }
// label
final String label = select.getLabel();