Author: Alex.Kolonitsky
Date: 2009-09-14 10:04:14 -0400 (Mon, 14 Sep 2009)
New Revision: 15554
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp
Log:
oncomplete for treeNode does not work with ajax selection
https://jira.jboss.org/jira/browse/RF-3005
Modified: 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 2009-09-14
14:03:34 UTC (rev 15553)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp 2009-09-14
14:04:14 UTC (rev 15554)
@@ -9,18 +9,61 @@
</head>
<body>
<f:view>
- <h:form id="f">
+ <h:form id="f1">
<a4j:status startText="...start..." stopText="stopped"
/>
- <rich:tree id="tree" value="#{bean.data}"
var="item">
+ <rich:tree id="tree1" value="#{bean.data}"
var="item"
+ ajaxSubmitSelection="true" >
<rich:treeNode id="node"
- nodeSelectListener="#{bean.onSelect}">
+ nodeSelectListener="#{bean.onSelect}"
+ oncomplete="alert('oncomplete');" >
<h:outputText id="item" value="#{item}" />
</rich:treeNode>
</rich:tree>
<h:inputText id="text" value="123"
required="true" />
</h:form>
+
+ <p>_____________________________________</p>
+ <h:form id="f2">
+ <rich:tree id="tree2" value="#{bean.data}"
var="item"
+ ajaxSubmitSelection="true" >
+ <rich:treeNode id="node"
+ nodeSelectListener="#{bean.onSelect}"
+ >
+ <h:outputText id="item" value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+ <h:inputText id="text" value="123"
required="true" />
+ </h:form>
+
+ <p>_____________________________________</p>
+ <h:form id="f3">
+ <rich:tree id="tree3" value="#{bean.data}"
var="item"
+ ajaxSubmitSelection="false" >
+ <rich:treeNode id="node"
+ nodeSelectListener="#{bean.onSelect}"
+ oncomplete="alert('oncomplete');" >
+ <h:outputText id="item" value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+ <h:inputText id="text" value="123"
required="true" />
+ </h:form>
+
+ <p>_____________________________________</p>
+ <h:form id="f4">
+ <rich:tree id="tree4" value="#{bean.data}"
var="item"
+ ajaxSubmitSelection="false" >
+ <rich:treeNode id="node"
+ nodeSelectListener="#{bean.onSelect}"
+ >
+ <h:outputText id="item" value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+ <h:inputText id="text" value="123"
required="true" />
+ </h:form>
</f:view>
+
+
</body>
</html>