Author: Alex.Kolonitsky
Date: 2009-09-10 13:42:13 -0400 (Thu, 10 Sep 2009)
New Revision: 15537
Added:
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp
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-7323.jsp
Log:
Tree: selection and expanding impossible if ajaxSingle=true and some input validation
failed.
https://jira.jboss.org/jira/browse/RF-5609
Added: branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp
===================================================================
--- branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp
(rev 0)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5608.jsp 2009-09-10
17:42:13 UTC (rev 15537)
@@ -0,0 +1,68 @@
+<%@ page pageEncoding="UTF-8" contentType="text/html;
charset=UTF-8"%>
+
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/tree"
prefix="tree"%>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/drag-drop"
prefix="dnd"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<f:view>
+ <h:form id="f" >
+ <a4j:outputPanel id="op" ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
+ <!-- ajaxSingle="true" -->
+
+ <tree:tree
+ id="tree"
+ switchType="client"
+ ajaxSingle="true"
+
+ value="#{treeDndBean.treeNodeLeft}"
+ rowKeyVar="key"
+ var="item"
+
+ binding="#{treeDndBean.leftTree}"
+ dropListener="#{treeDndBean.onDrop}"
+ dragListener="#{treeDndBean.onDrag}"
+
+ dragIndicator="treeIndicator"
+ acceptedTypes="treeNode"
+ dragType="treeNode" >
+ </tree:tree>
+ </h:form>
+
+ <h:form id="f2">
+ <a4j:status startText="...start..." stopText="stopped"
/>
+
+ <tree:tree id="tree" value="#{bean.data}"
var="item">
+ <tree:treeNode
+ id="node"
+ ajaxSubmitSelection="true"
+ ajaxSingle="false"
+ nodeSelectListener="#{bean.onSelect}"
+
+ process="text"
+ reRender="text2"
+ >
+ <h:outputText id="item" value="#{item}" />
+ </tree:treeNode>
+ </tree:tree>
+
+ <h:inputText id="text" value="#{bean.value}" />
+ <h:inputText id="text2" value="#{bean.value}"/>
+ <a4j:region selfRendered="true">
+ <h:inputText id="text3" value="#{bean.value}"/>
+ </a4j:region>
+ </h:form>
+
+</f:view>
+</body>
+</html>
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-10
17:41:31 UTC (rev 15536)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-5609.jsp 2009-09-10
17:42:13 UTC (rev 15537)
@@ -5,21 +5,22 @@
prefix="rich"%>
<html>
<head>
- <title></title>
+<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"
+ <rich:treeNode id="node"
nodeSelectListener="#{bean.onSelect}">
<h:outputText id="item" value="#{item}" />
</rich:treeNode>
</rich:tree>
- <h:inputText id="text" value="" required="true"
/>
+ <h:inputText id="text" value="123"
required="true" />
</h:form>
</f:view>
</body>
-</html>
\ No newline at end of file
+</html>
+
Modified: 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 2009-09-10
17:41:31 UTC (rev 15536)
+++
branches/community/3.3.X/samples/tree-demo/src/main/webapp/pages/RF-7323.jsp 2009-09-10
17:42:13 UTC (rev 15537)
@@ -12,19 +12,40 @@
<a4j:status startText="...start..." stopText="stopped" />
<h:form id="id" >
- <h:inputText id="input" value="#{rf4351.value}" />
+ <h:inputText id="input" value="#{rf4351.value}"
required="true" />
<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"
+ <rich:tree
+ id="tree"
+ value="#{rf4351.data}" var="node"
+ switchType="ajax"
rowKeyConverter="org.richfaces.TreeRowKeyConverter">
- <rich:treeNode ajaxSingle="true" process="input" >
+ <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>
+
+ <p>__________________________________________________</p>
+
+ <rich:tree
+ value="#{rf4351.data}" var="item"
+ switchType="ajax"
+ ajaxSingle="true" process="text"
+ rowKeyConverter="org.richfaces.TreeRowKeyConverter"
+ >
+
+ <rich:treeNode >
+ <h:outputText value="#{item}" />
+ </rich:treeNode>
+ </rich:tree>
+
+ <h:panelGrid columns="1" >
+ <h:inputText value="#{rf4351.value}" required="true"
id="text"/>
+ </h:panelGrid>
</h:form>
</f:view>
</body>