Author: estherbin
Date: 2008-07-28 11:47:57 -0400 (Mon, 28 Jul 2008)
New Revision: 9369
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java
Log:
Fix bugs
https://jira.jboss.org/jira/browse/JBIDE-2564
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java 2008-07-28
15:46:34 UTC (rev 9368)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java 2008-07-28
15:47:57 UTC (rev 9369)
@@ -12,7 +12,6 @@
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
-import org.jboss.tools.vpe.xulrunner.browser.util.DOMTreeDumper;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
@@ -52,10 +51,6 @@
/** The list width. */
private String listWidth;
-
- private String uploadControlLabel;
-
- private String uploadControlClass;
/**
* The Constructor.
@@ -102,8 +97,6 @@
final nsIDOMElement labelDiv = visualDocument.createElement(HTML.TAG_DIV);
labelDiv.setAttribute(HTML.ATTR_CLASS,
defaultStyleClasses.get("addButtonClassDiv2"));
- labelDiv.appendChild(visualDocument.createTextNode(this.addControlLabel));
- fileuploadButtonDiv.appendChild(labelDiv);
rootDiv.appendChild(table);
rootDiv.appendChild(createPanelDiv(pageContext, source, visualDocument));
@@ -111,10 +104,11 @@
tr.appendChild(td);
td.appendChild(buttonBorderDiv);
buttonBorderDiv.appendChild(fileuploadButtonDiv);
-
+ fileuploadButtonDiv.appendChild(labelDiv);
+ labelDiv.appendChild(visualDocument.createTextNode(this.addControlLabel));
- DOMTreeDumper dumper = new DOMTreeDumper();
- dumper.dumpToStream(System.err, rootDiv);
+// DOMTreeDumper dumper = new DOMTreeDumper();
+// dumper.dumpToStream(System.err, rootDiv);
data = new VpeCreationData(rootDiv);
return data;
@@ -202,10 +196,6 @@
if (ComponentUtil.isNotBlank(uploadListClass)) {
defaultStyleClasses.put("uploadListClass",
defaultStyleClasses.get("uploadListClass") + " " + uploadListClass);
}
-
- this.uploadControlClass = ComponentUtil.getAttribute(sourceElement,
"uploadControlClass");
- this.uploadControlLabel = ComponentUtil.getAttribute(sourceElement,
"uploadControlLabel");
-
}
}