Author: dbiatenia
Date: 2007-05-21 10:25:24 -0400 (Mon, 21 May 2007)
New Revision: 822
Modified:
trunk/richfaces/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRenderer.java
Log:
Modified:
trunk/richfaces/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRenderer.java
===================================================================
---
trunk/richfaces/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRenderer.java 2007-05-21
13:21:18 UTC (rev 821)
+++
trunk/richfaces/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRenderer.java 2007-05-21
14:25:24 UTC (rev 822)
@@ -256,12 +256,25 @@
buffer.append(",false");
}
} else {
+ PanelMenuRendererBase renderer = (PanelMenuRendererBase)
context.getRenderKit().getRenderer(child.getFamily(), child.getRendererType());
+ try {
+ value = renderer.isOpened(context, child);
+ if (value.equals("opened")) {
+ buffer.append(",true");
+ } else {
+ buffer.append(",false");
+ }
+ } catch (IOException e) {
+ buffer.append(",false");
+ }
+/* dbiatenia 2007/05/21
Object property = child.getAttributes().get("expanded");
if (property!=null&&property.equals("true")){
buffer.append(",true");
} else {
buffer.append(",false");
}
+*/
}
}
Show replies by date