Author: vbaranov
Date: 2008-03-06 05:12:04 -0500 (Thu, 06 Mar 2008)
New Revision: 6582
Modified:
trunk/samples/datascroller-sample/src/main/java/org/richfaces/TestBean.java
trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp
Log:
Update samples to test
http://jira.jboss.com/jira/browse/RF-1834
Modified: trunk/samples/datascroller-sample/src/main/java/org/richfaces/TestBean.java
===================================================================
--- trunk/samples/datascroller-sample/src/main/java/org/richfaces/TestBean.java 2008-03-06
10:11:59 UTC (rev 6581)
+++ trunk/samples/datascroller-sample/src/main/java/org/richfaces/TestBean.java 2008-03-06
10:12:04 UTC (rev 6582)
@@ -24,6 +24,7 @@
import javax.faces.event.ActionEvent;
+import org.ajax4jsf.component.html.HtmlAjaxCommandLink;
import org.richfaces.event.DataScrollerEvent;
public class TestBean {
@@ -87,6 +88,15 @@
}
+ /**
+ * ActionListener to test {@link
http://jira.jboss.com/jira/browse/RF-1834}
+ *
+ * @param e - ActionEvent
+ */
+ public void doSort(ActionEvent e){
+ HtmlAjaxCommandLink a = (HtmlAjaxCommandLink)e.getComponent();
+ System.out.println("ActionListener :" + a.getValue().toString());
+ }
public void setRenderIfSinglePage(boolean renderIfSinglePage){
this.renderIfSinglePage = renderIfSinglePage;
Modified: trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp 2008-03-06 10:11:59
UTC (rev 6581)
+++ trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp 2008-03-06 10:12:04
UTC (rev 6582)
@@ -3,6 +3,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/datascroller"
prefix="ds"%>
<html>
@@ -32,7 +33,7 @@
</f:facet>
<h:column>
<f:facet name="header">
- <h:outputText value="Number 1" />
+ <a4j:commandLink value="Number 1" reRender="master"
actionListener="#{testBean.doSort}"/>
</f:facet>
<h:outputText value="#{data.number1}" />
<f:facet name="footer">