Author: abelevich
Date: 2008-07-25 10:36:59 -0400 (Fri, 25 Jul 2008)
New Revision: 9790
Added:
trunk/samples/dataTableDemo/src/main/java/org/richfaces/TestBean.java
trunk/samples/dataTableDemo/src/main/webapp/pages/page_RF-4002.jsp
Modified:
trunk/samples/dataTableDemo/src/main/webapp/WEB-INF/faces-config.xml
Log:
files for the RF-4002 issue
Added: trunk/samples/dataTableDemo/src/main/java/org/richfaces/TestBean.java
===================================================================
--- trunk/samples/dataTableDemo/src/main/java/org/richfaces/TestBean.java
(rev 0)
+++ trunk/samples/dataTableDemo/src/main/java/org/richfaces/TestBean.java 2008-07-25
14:36:59 UTC (rev 9790)
@@ -0,0 +1,15 @@
+package org.richfaces;
+
+public class TestBean {
+
+ private String text;
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+}
Modified: trunk/samples/dataTableDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/dataTableDemo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-25
14:10:45 UTC (rev 9789)
+++ trunk/samples/dataTableDemo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-25
14:36:59 UTC (rev 9790)
@@ -7,6 +7,13 @@
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>testBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.TestBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
<managed-bean>
<managed-bean-name>data</managed-bean-name>
<managed-bean-class>org.richfaces.Data</managed-bean-class>
Added: trunk/samples/dataTableDemo/src/main/webapp/pages/page_RF-4002.jsp
===================================================================
--- trunk/samples/dataTableDemo/src/main/webapp/pages/page_RF-4002.jsp
(rev 0)
+++ trunk/samples/dataTableDemo/src/main/webapp/pages/page_RF-4002.jsp 2008-07-25 14:36:59
UTC (rev 9790)
@@ -0,0 +1,23 @@
+<%@ 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/rich" prefix="rich" %>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
+
+<html>
+ <head>
+ <title>RF-4002</title>
+ </head>
+ <body>
+ <f:view>
+ <h:form id="_form">
+ <rich:dataTable value="1" id="dataTable">
+ <rich:column>
+ <h:inputText value="#{testBean.text}"></h:inputText>
+ <a4j:commandLink id="lnk" value="Submit"
reRender="out"></a4j:commandLink>
+ <h:outputText id="out" value="#{testBean.text}"/>
+ </rich:column>
+ </rich:dataTable>
+ </h:form>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file