BIANEMohamed / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

JSON tree not rendering #1050

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. attempt the "A Tree Component with a JSON Data Source." example
2.
3.

What is the expected output? What do you see instead?
A tree will render.
The screen flashes with some kind of error and then it clears the screen with 
no way to tell what happens

Which struts2 version?
2.3.15.2

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.

Original issue reported on code.google.com by jeff.kre...@farecompare.com on 9 Oct 2013 at 9:07

Attachments:

GoogleCodeExporter commented 9 years ago
I found the problem to be not setting "root" param on the JSON action to be the 
array of nodes so that the json returned to the tree is only an array of nodes.

It would be better if the "rootNodes" attribute on the jsTree was honored to 
only look at that portion of the JSON.

Original comment by jeff.kre...@farecompare.com on 10 Oct 2013 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 10 Apr 2014 at 7:08