Author: yradtsevich
Date: 2008-11-18 14:19:03 -0500 (Tue, 18 Nov 2008)
New Revision: 11869
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableChildrenEncoder.java
Log:
A bug with spontaneously growing spaces in rich:dataTable has been fixed.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableChildrenEncoder.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableChildrenEncoder.java 2008-11-18
16:20:05 UTC (rev 11868)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableChildrenEncoder.java 2008-11-18
19:19:03 UTC (rev 11869)
@@ -88,7 +88,13 @@
* <BR/>For any another tag it uses {@link #addElementToTable(Node)} method.
* */
public void encodeChildren() {
- final List<Node> children = ComponentUtil.getChildren(sourceElement);
+ // create an empty childrenInfo. It tells to VpeVisualDomBuilder
+ // that it is not necessary to add any child of the sourceElement
+ // except ones specified in another vpeChildrenInfo's
+ final VpeChildrenInfo childInfo = new VpeChildrenInfo(null);
+ creationData.addChildrenInfo(childInfo);
+
+ final List<Node> children = ComponentUtil.getChildren(sourceElement);
boolean createNewRow = true;
for (final Node child : children) {
final String nodeName = child.getNodeName();
Show replies by date