[richfaces-issues] [JBoss JIRA] Created: (RF-6257) Tree: JS Error after ajax selection of node.

Alexander Dubovsky (JIRA) jira-events at lists.jboss.org
Wed Feb 18 10:39:44 EST 2009


Tree: JS Error after ajax selection of node.
--------------------------------------------

                 Key: RF-6257
                 URL: https://jira.jboss.org/jira/browse/RF-6257
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.1
         Environment: 3.3.1.SNAPSHOT
jsp, facelets
All browsers
            Reporter: Alexander Dubovsky
            Assignee: Nick Belaevski


Source:
<h:form>
		<rich:tree id="tree" switchType="server" value="#{tree.data}" var="data"
			ajaxSubmitSelection="true">
		</rich:tree>
	</h:form>

Data:
if (data == null) {
			TreeNodeImpl<String> n = new TreeNodeImpl<String>();
			n.setData("rnode");
			int i = 0;
			for (i = 0; i < 10; i++) {
				TreeNodeImpl<String> t = new TreeNodeImpl<String>();
				t.setData("node-" + i);
				n.addChild(Integer.valueOf(i), t);
			}
			data = new TreeNodeImpl<String>();
			data.setData("data");
			data.addChild(Integer.valueOf(i), n);
		}

Steps:
# Expand tree
# Try to select any node
Result: JS Error - 
E is undefined
toggleSelection()(undefined)ui.pack.js.jsf (line 533)
setSelection()(Object childs=[10] tree=Object elements=Object)ui.pack.js.jsf (line 290)
restoreSelection()()ui.pack.js.jsf (line 282)
initialize()(function(), "j_id_jsp_408862106_2:tree", "j_id_jsp_408862106_2:tree:input", "server", Object, function(), Object columnCount=0 0=j 1=_ 2=i 3=d 4=_ 5=j 6=s 7=p 8=_ 9=4 10=0)ui.pack.js.jsf (line 206)
wrap()()framewor...ck.js.jsf (line 91)
A()framewor...ck.js.jsf (line 6)
(?)()()tree.jsf (line 25)
tree.jsf()()tree.jsf (line 14)
[Break on this error] }if(E["treeItem"]){var D=this.elements.textElement;

In IE6-7 the same error occures independent on switchType. In all other browsers error occures only in case switchType=server

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list