Author: Alex.Kolonitsky
Date: 2010-10-31 16:46:11 -0400 (Sun, 31 Oct 2010)
New Revision: 19807
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuGroup.java
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/DivPanelRenderer.java
Log:
RF-9317 panelMenu components
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuGroup.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuGroup.java 2010-10-31
20:24:22 UTC (rev 19806)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuGroup.java 2010-10-31
20:46:11 UTC (rev 19807)
@@ -23,8 +23,8 @@
package org.richfaces.component;
-import org.richfaces.event.ChangeExpandEvent;
import org.richfaces.event.ItemChangeEvent;
+import org.richfaces.event.PanelToggleEvent;
import javax.el.ValueExpression;
import javax.faces.context.FacesContext;
@@ -78,7 +78,7 @@
setExpanded(expanded);
setSubmittedExpanded(null);
if (previous != null && !previous.equals(expanded)) {
- queueEvent(new ChangeExpandEvent(this, previous));
+ queueEvent(new PanelToggleEvent(this, previous));
}
}
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/DivPanelRenderer.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/DivPanelRenderer.java 2010-10-31
20:24:22 UTC (rev 19806)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/DivPanelRenderer.java 2010-10-31
20:46:11 UTC (rev 19807)
@@ -98,7 +98,7 @@
writer.writeAttribute("id", component.getClientId(context),
"clientId");
writer.writeAttribute("class", getStyleClass(component), null);
String style = getStyle(component);
- if (style != null) {
+ if (style != null && style.length() > 0) {
writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null);
}
Show replies by date