You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pm...@apache.org on 2007/12/13 12:34:37 UTC

svn commit: r603889 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java

Author: pmahoney
Date: Thu Dec 13 03:34:36 2007
New Revision: 603889

URL: http://svn.apache.org/viewvc?rev=603889&view=rev
Log:
TOMAHAWK-1168: Fix HTML for non-single element layout

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java?rev=603889&r1=603888&r2=603889&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java Thu Dec 13 03:34:36 2007
@@ -257,9 +257,15 @@
         }
         if (scroller.isPaginator())
         {
-            writeScrollerElementStart(writer, scroller);
+        	if(!scroller.isSingleElementLayout())
+        	{
+        		writeScrollerElementStart(writer, scroller);
+        	}
             renderPaginator(facesContext, scroller);
-            writeScrollerElementEnd(writer, scroller);
+        	if(!scroller.isSingleElementLayout())
+        	{
+        		writeScrollerElementEnd(writer, scroller);
+        	}
         }
         facetComp = scroller.getNext();
         if (facetComp != null)