myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1152800 - /myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
Date Mon, 01 Aug 2011 14:32:16 GMT
Author: weber
Date: Mon Aug  1 14:32:15 2011
New Revision: 1152800

URL: http://svn.apache.org/viewvc?rev=1152800&view=rev
Log:
(TOBAGO-1017)  Sandbox simpleSheet: Impossible to select a row in tc:sheet by keyboard  
<https://issues.apache.org/jira/browse/TOBAGO-1017>

Modified:
    myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java

Modified: myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java?rev=1152800&r1=1152799&r2=1152800&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
Mon Aug  1 14:32:15 2011
@@ -250,15 +250,12 @@ public class SimpleSheetRenderer extends
             + (align!=null?HtmlRendererUtil.toStyleString("text-align", align):""), false);
         if (column instanceof UIColumnSelector) {
           final boolean disabled = ComponentUtil.getBooleanAttribute(column, TobagoConstants.ATTR_DISABLED);
-          writer.startElement(HtmlConstants.IMG, null);
-          if (disabled) {
-            writer.writeAttribute(HtmlAttributes.SRC, selectorDisabled, false);
-          } else {
-            writer.writeAttribute(HtmlAttributes.SRC, unchecked, false);
-          }
+          writer.startElement(HtmlConstants.INPUT, null);
+          writer.writeAttribute(HtmlAttributes.TYPE, "checkbox", false);
+          writer.writeAttribute(HtmlAttributes.DISABLED, disabled);
           writer.writeIdAttribute(sheetId + "_data_row_selector_" + row);
-          writer.writeClassAttribute("tobago-sheet-column-selector");
-          writer.endElement(HtmlConstants.IMG);
+          writer.writeClassAttribute("tobago-selectBooleanCheckbox-default");
+          writer.endElement(HtmlConstants.INPUT);
         } else {
           List<UIComponent> childs = data.getRenderedChildrenOf(column);
           for (UIComponent grandkid : childs) {



Mime
View raw message