Author: Alex.Kolonitsky
Date: 2009-06-05 06:26:10 -0400 (Fri, 05 Jun 2009)
New Revision: 14532
Added:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/rf4351/Bean.java
Log:
Tree/TreeNode: process attribute doesn't work
https://jira.jboss.org/jira/browse/RF-7323
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/rf4351/Bean.java
===================================================================
---
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/rf4351/Bean.java 2009-06-05
10:25:37 UTC (rev 14531)
+++
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/rf4351/Bean.java 2009-06-05
10:26:10 UTC (rev 14532)
@@ -21,6 +21,7 @@
package org.richfaces.rf4351;
+import java.util.Date;
import java.util.Set;
import java.util.TreeSet;
@@ -163,6 +164,32 @@
checkChars(skipChars);
}
+ private Date date = new Date();
+ private String value = "";
+ private int counter = 0;
+
+ public void dateAction() {
+ date = new Date();
+ }
+
+ public String getDate() {
+ return value + " -" + (counter++) + "- Date: " + date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+
+
// 4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] |
[#xC0-#xD6] |
// [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] |
// [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] |
Added: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp
(rev 0)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp 2009-06-05
10:26:10 UTC (rev 14532)
@@ -0,0 +1,31 @@
+<%@ 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/tree"
+ prefix="rich"%>
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<f:view>
+ <a4j:status startText="...start..." stopText="stopped" />
+
+ <h:form id="id" >
+ <h:inputText id="input" value="#{rf4351.value}" />
+ <a4j:commandLink value="process" process="input"
ajaxSingle="true" /><br /><br />
+
+ <h:outputText id="output" value="#{rf4351.date}" />
+ <a4j:commandLink value="reRender" reRender="output"
ajaxSingle="true" /><br /><br />
+
+ <rich:tree id="tree" value="#{rf4351.data}"
var="node" switchType="ajax"
+ rowKeyConverter="org.richfaces.TreeRowKeyConverter">
+ <rich:treeNode ajaxSingle="true" process="input" >
+ <h:outputText value="#{node}" />
+ <a4j:commandLink ajaxSingle="true" value="link"
process="input" reRender="output"
action="#{rf4351.dateAction}"/>
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+</f:view>
+</body>
+</html>
\ No newline at end of file