Author: abelevich
Date: 2007-11-12 08:37:21 -0500 (Mon, 12 Nov 2007)
New Revision: 3914
Modified:
branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
Log:
RF-1324
Modified:
branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
===================================================================
---
branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12
13:36:56 UTC (rev 3913)
+++
branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12
13:37:21 UTC (rev 3914)
@@ -82,7 +82,7 @@
if (! (child instanceof UIToolBarGroup)) {
writer.endElement("td");
}
- if (it.hasNext() || !childrenToTheRight.isEmpty()) {
+ if (it.hasNext()) {
insertSeparatorIfNeed(writer, facesContext, toolBar);
}
}
@@ -90,9 +90,9 @@
writer.startElement("td", component);
writer.writeAttribute("width", "100%", null);
writer.endElement("td");
- if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
- insertSeparatorIfNeed(writer, facesContext, toolBar);
- }
+// if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
+// insertSeparatorIfNeed(writer, facesContext, toolBar);
+// }
for (Iterator it = childrenToTheRight.iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();