Author: dbiatenia
Date: 2007-05-21 10:51:49 -0400 (Mon, 21 May 2007)
New Revision: 823
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
14:25:24 UTC (rev 822)
+++
trunk/richfaces/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRenderer.java 2007-05-21
14:51:49 UTC (rev 823)
@@ -256,25 +256,12 @@
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")){
+ if (property!=null && property.toString().equals("true")){
buffer.append(",true");
} else {
buffer.append(",false");
}
-*/
}
}
Show replies by date