Author: jjamrich
Date: 2011-06-06 18:02:56 -0400 (Mon, 06 Jun 2011)
New Revision: 22528
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
Fix issue with itemChangeEvent listener
During investigation issue on tabPanel appeared null events. Sanitized
log for this cases.
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 2011-06-06
22:02:38 UTC (rev 22527)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2011-06-06
22:02:56 UTC (rev 22528)
@@ -404,8 +404,8 @@
* an event representing the activation of a user interface component
*/
public void itemChangeListener(ItemChangeEvent event) {
- logToPage("* item changed: " + (event.getOldItem() == null ? null :
event.getOldItem().getId()) + " -> "
- + event.getNewItem().getId());
+ logToPage("* item changedX: " + (event.getOldItem() == null ? null :
event.getOldItem().getId()) + " -> "
+ + (event.getNewItem() != null ? event.getNewItem().getId() : null));
}
/**
Show replies by date