Author: ppitonak(a)redhat.com
Date: 2010-10-29 05:17:07 -0400 (Fri, 29 Oct 2010)
New Revision: 19751
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
* added dummy action and action listener
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-10-29
04:32:06 UTC (rev 19750)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-10-29
09:17:07 UTC (rev 19751)
@@ -35,6 +35,7 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import javax.servlet.http.HttpSession;
@@ -343,4 +344,23 @@
public String causeError() {
throw new FacesException("Ajax request caused an error. This is intentional
behavior.");
}
+
+ /**
+ * An action that does nothing.
+ * @return null
+ */
+ public String dummyAction() {
+ logToPage("* action invoked");
+ return null;
+ }
+
+ /**
+ * An action listener that does nothing.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not
used)
+ */
+ public void dummyActionListener(ActionEvent event) {
+ logToPage("* action listener invoked");
+ }
}