click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r788386 - in /incubator/click/trunk/click/extras/src/org/apache/click/extras: control/FormTable.java control/PickList.htm control/TabbedForm.htm panel/TabbedPanel.htm
Date Thu, 25 Jun 2009 15:18:09 GMT
Author: sabob
Date: Thu Jun 25 15:18:09 2009
New Revision: 788386

URL: http://svn.apache.org/viewvc?rev=788386&view=rev
Log:
added tbody and thead elements when rendering tables

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/TabbedForm.htm
    incubator/click/trunk/click/extras/src/org/apache/click/extras/panel/TabbedPanel.htm

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java?rev=788386&r1=788385&r2=788386&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
Thu Jun 25 15:18:09 2009
@@ -632,12 +632,12 @@
             if (getAttribute("width") != null) {
                 buffer.appendAttribute("width", getAttribute("width"));
             }
-            buffer.append("><tr><td");
+            buffer.append("><tbody><tr><td");
             buffer.appendAttribute("align", form.getButtonAlign());
             buffer.append(">\n");
             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++) {
                 buffer.append("<td class=\"buttons\"");
@@ -650,8 +650,8 @@
                 buffer.append("</td>");
             }
             buffer.append("</tr>\n");
-            buffer.append("</table>\n");
-            buffer.append("</td></tr></table>\n");
+            buffer.append("</tbody></table>\n");
+            buffer.append("</td></tr></tbody></table>\n");
         }
     }
 

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm?rev=788386&r1=788385&r2=788386&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm Thu
Jun 25 15:18:09 2009
@@ -18,13 +18,16 @@
 -->
 
 <table width="$size" class="picklist">
-  #if($unselectedLabel || $selectedLabel)
+#if($unselectedLabel || $selectedLabel)
+<thead>
   <tr>
     <th>$unselectedLabel</th>
-    <td>&#160;</td>
+    <th>&#160;</th>
     <th>$selectedLabel</th>
   </tr>
-  #end
+</thead>
+#end
+<tbody>
 <tr>
 <td width="50%">
   <select id="${id}_unselected" size="$height" style="width:100%;" multiple="multiple"
@@ -39,7 +42,7 @@
     #end
   </select>
 </td>
-<td valign="middle" width="0%">
+<td valign="middle">
   <input type="button" value="&gt;" style="width:60px;" 
          onclick="pickListMove(${id}_unselected, $id, ${id}_hidden, true)"
     #if($readOnly || $disabled)
@@ -82,6 +85,7 @@
   </select>
 </td>
 </tr>
+</tbody>
 </table>
 
 <select id="${id}_hidden" name="$name" style="display: none;" multiple="multiple">

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/TabbedForm.htm
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/TabbedForm.htm?rev=788386&r1=788385&r2=788386&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/TabbedForm.htm
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/TabbedForm.htm
Thu Jun 25 15:18:09 2009
@@ -41,7 +41,7 @@
 
 $form.startTag()
 <table border="0" cellpadding="0" cellspacing="0">
-
+<tbody>
 	#* Render form errors at the top position *#
 #if ($form.errorsPosition == "top")
 	#if ($form.error)
@@ -68,6 +68,7 @@
 	<tr>
     	<td> 
 			<table border="0" cellspacing="0" cellpadding="0">
+       <tbody>
 				<tr>
 					<td class="tf_separator"> &#160;&#160; </td>
 					#foreach ($tabSheet in $form.tabSheets)
@@ -86,6 +87,7 @@
 					#end
 					<td class="tf_separator" style="width:100%"> &#160; </td>
 				</tr>
+       </tbody>
 			</table>
 		</td>
    	</tr>
@@ -159,6 +161,6 @@
 	</tr>		
 	#end
 #end	
-
+</tbody>
 </table>
 $form.endTag()

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/panel/TabbedPanel.htm
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/panel/TabbedPanel.htm?rev=788386&r1=788385&r2=788386&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/panel/TabbedPanel.htm (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/panel/TabbedPanel.htm Thu
Jun 25 15:18:09 2009
@@ -19,6 +19,7 @@
 
 <div id='$this.id'>
     <table class="tp_tab">
+      <tbody>
         <tr class="tp_tab">
         #foreach ($panel in $this.panels)
           #if ($panel.id == $this.activePanel.id)
@@ -40,12 +41,15 @@
           #end
         #end
         </tr>
+      </tbody>
     </table>
     <table class="tp_content" #if(${width})width="${width}"#end>
+      <tbody>
         <tr class="tp_content">
             <td class="tp_content" #if(${width})width="${width}"#end>
                 $this.activePanel
             </td>
         </tr>
+      </tbody>
     </table>
 </div>
\ No newline at end of file



Mime
View raw message