click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r780294 - in /incubator/click/trunk/click/framework/src/org/apache/click/control: FieldSet.java Form.java
Date Sat, 30 May 2009 16:41:41 GMT
Author: sabob
Date: Sat May 30 16:41:40 2009
New Revision: 780294

URL: http://svn.apache.org/viewvc?rev=780294&view=rev
Log:
added tbody elements when rendering a table

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
    incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java?rev=780294&r1=780293&r2=780294&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java Sat May
30 16:41:40 2009
@@ -927,7 +927,7 @@
         buffer.appendAttribute("class", "fields");
         buffer.appendAttribute("id", getId() + "-fields");
         buffer.closeTag();
-        buffer.append("\n");
+        buffer.append("<tbody>\n");
 
         int column = 1;
         boolean openTableRow = false;
@@ -1081,6 +1081,7 @@
             buffer.append("</tr>\n");
         }
 
+        buffer.append("</tbody>");
         buffer.elementEnd("table");
         buffer.append("\n");
     }
@@ -1096,7 +1097,7 @@
         if (!buttons.isEmpty()) {
             buffer.append("<table class=\"buttons\" id=\"");
             buffer.append(getId());
-            buffer.append("-buttons\">\n");
+            buffer.append("-buttons\"><tbody>\n");
             buffer.append("<tr class=\"buttons\">");
 
             Form form = getForm();
@@ -1112,7 +1113,7 @@
             }
 
             buffer.append("</tr>\n");
-            buffer.append("</table>\n");
+            buffer.append("</tbody></table>\n");
         }
     }
 

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java?rev=780294&r1=780293&r2=780294&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java Sat May 30
16:41:40 2009
@@ -2054,7 +2054,7 @@
 
         buffer.append("<table class=\"form\" id=\"");
         buffer.append(getId());
-        buffer.append("-form\">\n");
+        buffer.append("-form\"><tbody>\n");
 
         // Render fields, errors and buttons
         if (POSITION_TOP.equals(getErrorsPosition())) {
@@ -2077,7 +2077,7 @@
             throw new IllegalArgumentException(msg);
         }
 
-        buffer.append("</table>\n");
+        buffer.append("</tbody></table>\n");
 
         renderTagEnd(formFields, buffer);
     }
@@ -2267,7 +2267,7 @@
         if (containerId != null) {
             buffer.appendAttribute("id", containerId + "-fields");
         }
-        buffer.append(">\n");
+        buffer.append("><tbody>\n");
 
         int column = 1;
         boolean openTableRow = false;
@@ -2438,7 +2438,7 @@
             buffer.append("</tr>\n");
         }
 
-        buffer.append("</table>\n");
+        buffer.append("</tbody></table>\n");
     }
 
     /**
@@ -2456,7 +2456,7 @@
             buffer.append("\">\n");
             buffer.append("<table class=\"errors\" id=\"");
             buffer.append(getId());
-            buffer.append("-errors\">\n");
+            buffer.append("-errors\"><tbody>\n");
 
             if (getError() != null) {
                 buffer.append("<tr class=\"errors\">");
@@ -2500,7 +2500,7 @@
                 buffer.append("</td></tr>\n");
             }
 
-            buffer.append("</table>\n");
+            buffer.append("</tbody></table>\n");
             buffer.append("</td></tr>\n");
         }
 
@@ -2532,7 +2532,7 @@
 
             buffer.append("<table class=\"buttons\" id=\"");
             buffer.append(getId());
-            buffer.append("-buttons\">\n");
+            buffer.append("-buttons\"><tbody>\n");
             buffer.append("<tr class=\"buttons\">");
 
             for (int i = 0, size = buttonList.size(); i < size; i++) {
@@ -2547,7 +2547,7 @@
             }
 
             buffer.append("</tr>\n");
-            buffer.append("</table>\n");
+            buffer.append("</tbody></table>\n");
             buffer.append("</td></tr>\n");
         }
     }



Mime
View raw message