Author: yradtsevich
Date: 2008-11-25 14:32:51 -0500 (Tue, 25 Nov 2008)
New Revision: 12047
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java
Log:
RESOLVED - issue JBIDE-3204: rich:scrollableDataTable's bugs.
https://jira.jboss.org/jira/browse/JBIDE-3204
- minor change - code has been formatted
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java 2008-11-25
19:27:13 UTC (rev 12046)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java 2008-11-25
19:32:51 UTC (rev 12047)
@@ -97,9 +97,8 @@
String divStyle = HTML.ATTR_WIDTH + " : "
+ width + ";"
+ HTML.ATTR_HEIGHT + " : "
- + height +
-";overflow:auto;";
-VpeCreationData creationData = new VpeCreationData(div);
+ + height + ";overflow:auto;"; //$NON-NLS-1$
+ VpeCreationData creationData = new VpeCreationData(div);
div.setAttribute(HTML.ATTR_STYLE, divStyle);
@@ -202,7 +201,7 @@
nsIDOMElement tbody = visualDocument
.createElement(HTML.TAG_TBODY);
mainTable.appendChild(tbody);
-ComponentUtil.copyAttributes(sourceNode, tbody);
+ ComponentUtil.copyAttributes(sourceNode, tbody);
for (int i = 0; i < NUM_ROW; i++) {
new RichFacesDataTableChildrenEncoder(creationData, visualDocument,
@@ -332,8 +331,6 @@
if (styleClass != null) {
tr.setAttribute(HTML.ATTR_CLASS, styleClass);
}
-// String style = ComponentUtil.getHeaderBackgoundImgStyle();
-// tr.setAttribute(HTML.ATTR_STYLE, style);
nsIDOMElement td = visualDocument.createElement(element);
tr.appendChild(td);