incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r447465 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java
Date Mon, 18 Sep 2006 16:37:59 GMT
Author: awiner
Date: Mon Sep 18 09:37:58 2006
New Revision: 447465

URL: http://svn.apache.org/viewvc?view=rev&rev=447465
Log:
Fix ADFFACES-166:  Provide meaningful Exception for tr:panelFormLayout without children or
(better) just don't render content.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java?view=diff&rev=447465&r1=447464&r2=447465
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PanelFormLayoutRenderer.java
Mon Sep 18 09:37:58 2006
@@ -580,7 +580,7 @@
   @SuppressWarnings("unchecked")
   private void _encodeFormColumns(
     FacesContext        context,
-    RenderingContext arc,
+    RenderingContext    arc,
     ResponseWriter      rw,
     boolean             startAlignedLabels,
     String              effectiveLabelWidth,
@@ -590,6 +590,9 @@
     int                 colSpan,
     List<FormItem>      visibleItems) throws IOException
   {
+    if (visibleItems.isEmpty())
+      return;
+
     rw.startElement("tr", null); // the outer row
     int currentItemIndex = 0;
     int visibleItemsLength = visibleItems.size();



Mime
View raw message