Author: nbelaevski
Date: 2008-07-24 14:32:28 -0400 (Thu, 24 Jul 2008)
New Revision: 9776
Modified:
trunk/samples/beanValidatorSample/src/main/java/org/richfaces/DataBean.java
trunk/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-3927
Modified: trunk/samples/beanValidatorSample/src/main/java/org/richfaces/DataBean.java
===================================================================
--- trunk/samples/beanValidatorSample/src/main/java/org/richfaces/DataBean.java 2008-07-24
18:32:24 UTC (rev 9775)
+++ trunk/samples/beanValidatorSample/src/main/java/org/richfaces/DataBean.java 2008-07-24
18:32:28 UTC (rev 9776)
@@ -4,11 +4,9 @@
package org.richfaces;
import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
import java.util.List;
-import java.util.ListIterator;
+import org.ajax4jsf.event.AjaxEvent;
import org.hibernate.validator.Max;
import org.hibernate.validator.Valid;
@@ -47,6 +45,8 @@
return total;
}
+ public void ajaxListener(AjaxEvent ajaxEvent) {
+ System.out.println("DataBean.ajaxListener()");
+ }
-
}
Modified: trunk/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml 2008-07-24
18:32:24 UTC (rev 9775)
+++ trunk/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml 2008-07-24
18:32:28 UTC (rev 9776)
@@ -38,7 +38,7 @@
</f:facet>
<h:outputLabel for="text" value="#{bean.textDescription}"
/>
<h:inputText id="text" value="#{bean.text}">
- <v:ajaxValidator event="onblur" />
+ <v:ajaxValidator event="onblur"
ajaxListener="#{data.ajaxListener}" />
</h:inputText>
<rich:message for="text" showDetail="true"
showSummary="true" />
</h:column>