You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2007/07/12 08:30:24 UTC

svn commit: r555506 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java

Author: lofwyr
Date: Wed Jul 11 23:30:23 2007
New Revision: 555506

URL: http://svn.apache.org/viewvc?view=rev&rev=555506
Log:
Print out client id in layoutmanager warnings.

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java?view=diff&rev=555506&r1=555505&r2=555506
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/GridLayoutRenderer.java Wed Jul 11 23:30:23 2007
@@ -97,8 +97,8 @@
 
     if (layoutTokens == null && !minimum && LOG.isDebugEnabled()) {
       LOG.debug("No rowLayout found using " + (minimum ? "'minimum'" : "'fixed'")
-          + " for all " + rows.size() + " rows of "
-          + layout.getClientId(facesContext) + " !");
+          + " for all " + rows.size() + " rows."
+          + " (clientId='" + layout.getClientId(facesContext) + "')");
     }
     layoutTokens.ensureSize(rows.size(), new RelativeLayoutToken(1));
     // TODO alternative? rows.size() == 1 ? new RelativeLayoutToken(1) : new FixedLayoutToken()
@@ -110,7 +110,8 @@
     if (rows.size() != layoutTokens.getSize()) {
       LOG.warn("Unbalanced layout: rows.size()=" + rows.size()
           + " != layoutTokens.length=" + layoutTokens.getSize()
-          + " rowLayout='" + layoutTokens + "'");
+          + " rowLayout='" + layoutTokens + "'"
+          + " (clientId='" + layout.getClientId(facesContext) + "')");
     }
     int size = Math.min(rows.size(), layoutTokens.getSize());
 
@@ -168,7 +169,8 @@
     if (row.getColumns() != layoutTokens.getSize()) {
       LOG.warn("Unbalanced layout: rows.size()=" + rows.size()
           + " != layoutTokens.length=" + layoutTokens.getSize()
-          + " columnLayout='" + layoutTokens + "'");
+          + " columnLayout='" + layoutTokens + "'"
+          + " (clientId='" + layout.getClientId(facesContext) + "')");
     }
     int size = Math.min(rows.size(), layoutTokens.getSize());