Author: ppitonak(a)redhat.com
Date: 2010-12-13 08:53:13 -0500 (Mon, 13 Dec 2010)
New Revision: 20527
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
Log:
* itemChangeListener refactored
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-13
12:58:08 UTC (rev 20526)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-13
13:53:13 UTC (rev 20527)
@@ -386,7 +386,7 @@
* an event representing the activation of a user interface component
*/
public void itemChangeListener(ItemChangeEvent event) {
- RichBean.logToPage("* item changed: " + event.getOldItem() + "
-> " + event.getNewItem());
+ logToPage("* item changed: " + event.getOldItem() + " -> "
+ event.getNewItem());
}
/**
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-12-13
12:58:08 UTC (rev 20526)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-12-13
13:53:13 UTC (rev 20527)
@@ -71,8 +71,4 @@
public void setAttributes(Attributes attributes) {
this.attributes = attributes;
}
-
- public void itemChangeListener(ItemChangeEvent event) {
- RichBean.logToPage("* item changed " + event.getOldItem() + "
-> " + event.getNewItem());
- }
}
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-12-13
12:58:08 UTC (rev 20526)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-12-13
13:53:13 UTC (rev 20527)
@@ -86,7 +86,7 @@
dir="#{richTogglePanelBean.attributes['dir'].value}"
execute="#{richTogglePanelBean.attributes['execute'].value}"
immediate="#{richTogglePanelBean.attributes['immediate'].value}"
-
itemChangeListener="#{richTogglePanelBean.itemChangeListener}"
+
itemChangeListener="#{richBean.itemChangeListener}"
lang="#{richTogglePanelBean.attributes['lang'].value}"
limitToList="#{richTogglePanelBean.attributes['limitToList'].value}"
onbeforeitemchange="#{richTogglePanelBean.attributes['onbeforeitemchange'].value}"