Author: abelevich
Date: 2007-10-15 08:29:46 -0400 (Mon, 15 Oct 2007)
New Revision: 3369
Modified:
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
Log:
fix RF-1112
Modified:
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
===================================================================
---
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15
12:18:49 UTC (rev 3368)
+++
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15
12:29:46 UTC (rev 3369)
@@ -179,13 +179,13 @@
itemNames.add(childName);
}
-
+ buffer.append("var params = new Object();");
+
if(child instanceof UIPanelMenuItem){
List paramsList = encodeParams(context, (UIPanelMenuItem)child);
if(!paramsList.isEmpty()){
- buffer.append("var params = new Object();");
for (Iterator iterator = paramsList.iterator(); iterator.hasNext();) {
- buffer.append(iterator.next());
+ buffer.append((String)iterator.next());
}
}
}
Show replies by date