Author: konstantin.mishin
Date: 2011-01-27 13:51:42 -0500 (Thu, 27 Jan 2011)
New Revision: 21292
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractCollapsiblePanel.java
Log:
RF-10312
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractCollapsiblePanel.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractCollapsiblePanel.java 2011-01-27
18:50:53 UTC (rev 21291)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractCollapsiblePanel.java 2011-01-27
18:51:42 UTC (rev 21292)
@@ -70,8 +70,7 @@
@Override
public String getActiveItem() {
- String ai = super.getActiveItem();
- return ai == null ? "true" : ai;
+ return String.valueOf(isExpanded());
}
@Override
@@ -84,15 +83,9 @@
return isExpanded();
}
- @Attribute
- public boolean isExpanded() {
- return Boolean.parseBoolean(getActiveItem());
- }
+ @Attribute(defaultValue="true")
+ public abstract boolean isExpanded();
- public void setExpanded(boolean isExpanded) {
- setActiveItem(String.valueOf(isExpanded));
- }
-
@Override
public void queueEvent(FacesEvent facesEvent) {
PanelToggleEvent event = null;
Show replies by date