Author: abelevich
Date: 2007-10-15 08:31:58 -0400 (Mon, 15 Oct 2007)
New Revision: 3370
Modified:
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
Log:
fix RF-1112
Modified:
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
===================================================================
---
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15
12:29:46 UTC (rev 3369)
+++
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15
12:31:58 UTC (rev 3370)
@@ -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