Author: sergeyhalipov
Date: 2008-01-25 14:21:11 -0500 (Fri, 25 Jan 2008)
New Revision: 5649
Modified:
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-2067
Modified:
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
===================================================================
---
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2008-01-25
18:46:14 UTC (rev 5648)
+++
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2008-01-25
19:21:11 UTC (rev 5649)
@@ -71,6 +71,10 @@
align = panelMenu.getIconItemPosition();
}
+ if (null == align || "".equals(align)) {
+ align = "left";
+ }
+
if (align.equalsIgnoreCase(from)){
image(context,component, from);
} else {
Modified:
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java
===================================================================
---
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2008-01-25
18:46:14 UTC (rev 5648)
+++
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuItemRenderer.java 2008-01-25
19:21:11 UTC (rev 5649)
@@ -71,6 +71,10 @@
align = panelMenu.getIconItemPosition();
}
+ if (null == align || "".equals(align)) {
+ align = "left";
+ }
+
if (align.equalsIgnoreCase(from)){
image(context,component, from);
} else {