Author: Alex.Kolonitsky
Date: 2010-12-09 08:51:23 -0500 (Thu, 09 Dec 2010)
New Revision: 20475
Added:
trunk/examples/output-demo/src/main/java/org/richfaces/CollapsiblePanel.java
Modified:
trunk/examples/output-demo/src/main/webapp/examples/collapsiblePanel.xhtml
trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
Log:
RF-9959 Collapsible panel: toggleListener should accept methods with event parameter
Added: trunk/examples/output-demo/src/main/java/org/richfaces/CollapsiblePanel.java
===================================================================
--- trunk/examples/output-demo/src/main/java/org/richfaces/CollapsiblePanel.java
(rev 0)
+++
trunk/examples/output-demo/src/main/java/org/richfaces/CollapsiblePanel.java 2010-12-09
13:51:23 UTC (rev 20475)
@@ -0,0 +1,44 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces;
+
+import org.richfaces.event.PanelToggleEvent;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+/**
+ * @author akolonitsky
+ * @since Dec 9, 2010
+ */
+@ManagedBean
+@SessionScoped
+public class CollapsiblePanel {
+
+ public CollapsiblePanel() {
+ }
+
+ public void action() {
+ System.out.println("CollapsiblePanel.action");
+ }
+
+}
Modified: trunk/examples/output-demo/src/main/webapp/examples/collapsiblePanel.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/collapsiblePanel.xhtml 2010-12-09
11:23:01 UTC (rev 20474)
+++ trunk/examples/output-demo/src/main/webapp/examples/collapsiblePanel.xhtml 2010-12-09
13:51:23 UTC (rev 20475)
@@ -27,7 +27,7 @@
</pn:collapsiblePanel>
- <pn:collapsiblePanel id="panel2" expanded="false"
switchType="ajax">
+ <pn:collapsiblePanel id="panel2" expanded="false"
switchType="ajax" toggleListener="#{collapsiblePanel.action}" >
<f:facet name="headerExpanded" >
header exanded
</f:facet>
Modified: trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-12-09 11:23:01 UTC
(rev 20474)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-12-09 13:51:23 UTC
(rev 20475)
@@ -1940,7 +1940,7 @@
</attribute>
<attribute>
<description></description>
- <name>panelToggleListener</name>
+ <name>toggleListener</name>
<type>javax.el.MethodExpression</type>
</attribute>
<attribute>
Show replies by date