Author: dsakovich
Date: 2008-01-14 13:48:21 -0500 (Mon, 14 Jan 2008)
New Revision: 5668
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1581
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14
18:08:47 UTC (rev 5667)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14
18:48:21 UTC (rev 5668)
@@ -50,25 +50,25 @@
parentDiv.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"dr-menu-list-border");
- nsIDOMElement div = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ nsIDOMElement table = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- div.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ table.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"dr-menu-list-bg rich-menu-list-bg dr-menu-list-border");
String path = RichFacesTemplatesActivator.getPluginResourcePath()
+ BACKGROUND_PATH;
- div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
"background-image: url(file://" + path + "); " + DIV_STYLE);
- parentDiv.appendChild(div);
+ parentDiv.appendChild(table);
List<Node> listItems = ComponentUtil.getChildren(sourceElement, false);
for (Node node : listItems) {
nsIDOMElement element = createMenuItem(visualDocument, node);
if (element != null)
- div.appendChild(element);
+ table.appendChild(element);
}
VpeCreationData creationData = new VpeCreationData(parentDiv);