Author: Alex.Kolonitsky
Date: 2010-12-14 04:31:06 -0500 (Tue, 14 Dec 2010)
New Revision: 20547
Modified:
trunk/examples/output-demo/src/main/webapp/examples/tabPanel.xhtml
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java
trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
Log:
RF-9926 Tab panel: attribute itemChangeListener ignored
Modified: trunk/examples/output-demo/src/main/webapp/examples/tabPanel.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/tabPanel.xhtml 2010-12-14 08:57:11
UTC (rev 20546)
+++ trunk/examples/output-demo/src/main/webapp/examples/tabPanel.xhtml 2010-12-14 09:31:06
UTC (rev 20547)
@@ -15,7 +15,7 @@
<p>Page</p>
<h:form id="f">
- <pn:tabPanel id="panel" switchType="ajax"
tabHeaderClassDisabled="myClass_01">
+ <pn:tabPanel id="panel" switchType="ajax"
tabHeaderClassDisabled="myClass_01"
itemChangeListener="#{togglePanelBean.itemChangeActionListener}">
<pn:tab header="tab1 header"
headerClassDisabled="myClass_02">
Content will be here. Content will be here. Content will be here.
Content will be here. Content will be here. Content will be here. Content will be here.
Content will be here. Content will be here. Content will be here. Content will be here.
Content will be here. Content will be here. Content will be here.
</pn:tab>
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java 2010-12-14
08:57:11 UTC (rev 20546)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java 2010-12-14
09:31:06 UTC (rev 20547)
@@ -376,7 +376,7 @@
String previous = (String) getValue();
setValue(activeItem);
setSubmittedActiveItem(null);
- if (previous != null && !previous.equalsIgnoreCase(activeItem)) {
+ if (previous == null || !previous.equalsIgnoreCase(activeItem)) {
queueEvent(new ItemChangeEvent(this, previous, activeItem));
}
}
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-14 08:57:11 UTC
(rev 20546)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-12-14 09:31:06 UTC
(rev 20547)
@@ -7,7 +7,7 @@
<component>
<component-type>org.richfaces.TabPanel</component-type>
<renderer-type>org.richfaces.TabPanel</renderer-type>
- <handler-class/>
+
<handler-class>org.richfaces.view.facelets.html.TogglePanelTagHandler</handler-class>
</component>
</tag>
<tag>
@@ -15,7 +15,6 @@
<component>
<component-type>org.richfaces.TabPanelItem</component-type>
<renderer-type>org.richfaces.Tab</renderer-type>
- <handler-class/>
</component>
</tag>
<tag>
Show replies by date