You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/03/27 00:06:49 UTC

svn commit: r388973 - /incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java

Author: weber
Date: Sun Mar 26 14:06:47 2006
New Revision: 388973

URL: http://svn.apache.org/viewcvs?rev=388973&view=rev
Log:
fix for TOBAGO-44 (No Exception, but warn in logfile, when using wrong count of columns in <tc:sheet>)

Modified:
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java?rev=388973&r1=388972&r2=388973&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java (original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIData.java Sun Mar 26 14:06:47 2006
@@ -160,6 +160,12 @@
       }
       String[] layoutTokens
           = LayoutInfo.createLayoutTokens(columnLayout, allColumns.size(), "1*");
+      if (layoutTokens.length != allColumns.size()) {
+        LOG.warn("Count of columnLayout tokens != count of columns! "
+            + "Using default token '1*' for all columns");
+        layoutTokens
+            = LayoutInfo.createLayoutTokens(null, allColumns.size(), "1*");
+      }
 
       // here we have layoutTokens for all columns
       // now remove tokens for unrendered columns