Author: ppitonak(a)redhat.com
Date: 2010-12-15 07:04:05 -0500 (Wed, 15 Dec 2010)
New Revision: 20575
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml
Log:
* sample for collapsible panel fixed (listener)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java 2010-12-15
11:08:33 UTC (rev 20574)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java 2010-12-15
12:04:05 UTC (rev 20575)
@@ -22,13 +22,11 @@
package org.richfaces.tests.metamer.bean;
import java.io.Serializable;
-
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.richfaces.component.UICollapsiblePanel;
-import org.richfaces.event.ToggleEvent;
-
+import org.richfaces.event.PanelToggleEvent;
import org.richfaces.tests.metamer.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -77,11 +75,7 @@
this.attributes = attributes;
}
- public void panelToggleListener(ToggleEvent event) {
- RichBean.logToPage("* panel " + (event.isExpanded() ?
"expanded" : "collapsed"));
+ public void toggleListener(PanelToggleEvent event) {
+ RichBean.logToPage("* panel " + (event.getExpanded() ?
"expanded" : "collapsed"));
}
-
- public void toggleListener() {
- RichBean.logToPage("* toggle listener");
- }
}
Property changes on:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml 2010-12-15
11:08:33 UTC (rev 20574)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsiblePanel/simple.xhtml 2010-12-15
12:04:05 UTC (rev 20575)
@@ -72,7 +72,7 @@
styleClass="#{richCollapsiblePanelBean.attributes['styleClass'].value}"
switchType="#{richCollapsiblePanelBean.attributes['switchType'].value}"
title="#{richCollapsiblePanelBean.attributes['title'].value}"
-
toggleListener="#{richCollapsiblePanelBean.panelToggleListener}"
+
toggleListener="#{richCollapsiblePanelBean.toggleListener}"
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a
neque turpis, at cursus nunc.