Author: jjamrich
Date: 2011-06-06 08:46:12 -0400 (Mon, 06 Jun 2011)
New Revision: 22522
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richTab/withA4j.xhtml
Log:
Modify rich:tab with a4j:ajax + add new actionListener
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-01
15:34:13 UTC (rev 22521)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2011-06-06
12:46:12 UTC (rev 22522)
@@ -386,6 +386,16 @@
public void actionListener(AjaxBehaviorEvent event) {
logToPage("* action listener invoked");
}
+
+ /**
+ * An action listener that does nothing.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not
used)
+ */
+ public void actionListener2(AjaxBehaviorEvent event) {
+ logToPage("* action listener *2 invoked");
+ }
/**
* An item change listener that logs to the page old and new value.
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTab/withA4j.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTab/withA4j.xhtml 2011-06-01
15:34:13 UTC (rev 22521)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTab/withA4j.xhtml 2011-06-06
12:46:12 UTC (rev 22522)
@@ -38,7 +38,7 @@
<ui:define name="component">
- <rich:tabPanel id="tabPanel"
itemChangeListener="#{richBean.itemChangeListener}" >
+ <rich:tabPanel id="tabPanel" switchType="ajax" >
<rich:tab id="tab1"
action="#{richBean.dummyAction}"
@@ -77,8 +77,8 @@
switchType="#{richTabBean.attributes['switchType'].value}"
title="#{richTabBean.attributes['title'].value}" >
<a4j:ajax
- event="click"
- listener="#{richBean.actionListener}" />
+ event="enter"
+ listener="#{richBean.actionListener2}" />
content of tab 1
</rich:tab>
<rich:tab id="tab2" name="tab2" header="tab2
header"
Show replies by date