myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmuel...@apache.org
Subject svn commit: r512728 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java
Date Wed, 28 Feb 2007 12:31:32 GMT
Author: gmuellan
Date: Wed Feb 28 04:31:31 2007
New Revision: 512728

URL: http://svn.apache.org/viewvc?view=rev&rev=512728
Log:
applied patch https://issues.apache.org/jira/browse/TOMAHAWK-905; Thx to Mike Gillan

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java?view=diff&rev=512728&r1=512727&r2=512728
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/table/FilterTableRenderer.java
Wed Feb 28 04:31:31 2007
@@ -64,6 +64,9 @@
         DojoUtils.addRequire(context, component, "dojo.widget.FilteringTable");
 
         writer.write("<table dojoType=\"filteringTable\" id=\"" + component.getClientId(context)
+  "\" ");
+        if (table.getStyleClass() != null) {
+             writer.write("class=\"" + table.getStyleClass() + "\" " );
+        }
         if (table.getHeadClass() != null) {
             writer.write("headClass=\"" + table.getHeadClass() + "\" " );
         } else {
@@ -127,6 +130,18 @@
                 } else {
                     writer.writeAttribute("dataType", "String", null);
                 }
+                if (col.getSort() != null) {
+                     writer.writeAttribute("sort", col.getSort(), null);
+                 }
+                 if (col.getAlign() != null) {
+                     writer.writeAttribute("align", col.getAlign(), null);
+                 }
+                 if (col.getValign() != null) {
+                     writer.writeAttribute("valign", col.getValign(), null);
+                 }
+                 if (col.getFormat() != null) {
+                     writer.writeAttribute("format", col.getFormat(), null);
+                 }
                 Boolean escape = col.getEscape();
                 if (escape == null || escape.booleanValue())  {
                     writer.writeText(col.getText(), JSFAttr.VALUE_ATTR);



Mime
View raw message