Author: Alex.Kolonitsky
Date: 2009-06-11 05:50:25 -0400 (Thu, 11 Jun 2009)
New Revision: 14593
Added:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java
Log:
Tree: selection and expanding impossible if ajaxSingle=true and some input validation
failed.
https://jira.jboss.org/jira/browse/RF-5609
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java
===================================================================
---
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2009-06-11
09:49:37 UTC (rev 14592)
+++
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2009-06-11
09:50:25 UTC (rev 14593)
@@ -215,14 +215,6 @@
public void onSelect(NodeSelectedEvent event) {
System.out.println("Node selected: " + getTree(event).getRowKey());
UITree tree = getTree(event);
-// Set keys = tree.getAjaxKeys();
-// if (keys == null) {
-// keys = new HashSet();
-// tree.setAjaxKeys(keys);
-// }
-
- //keys.add(tree.getRowKey());
- //keys.add(new ListRowKey());
if (getTree(event).getTreeNode()!=null) {
selectedNode = getTree(event).getTreeNode();
Added: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
(rev 0)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp 2009-06-11
09:50:25 UTC (rev 14593)
@@ -0,0 +1,25 @@
+<%@ 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>
+ <h:form id="f">
+ <a4j:status startText="...start..." stopText="stopped"
/>
+
+ <rich:tree id="tree" value="#{bean.data}"
var="item">
+ <rich:treeNode id="node" ajaxSubmitSelection="true"
ajaxSingle="true"
+ nodeSelectListener="#{bean.onSelect}">
+ <h:outputText id="item" value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+ <h:inputText id="text" value="" required="true"
/>
+ </h:form>
+</f:view>
+</body>
+</html>
\ No newline at end of file