hungsama / struts2-jquery

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

JSTree Using the setAttr on the TreeNode means you need to set the ID by hand. #921

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
More of a nuisance, but thought I would let you know.

In general, all you need to do is call setId("idVal") on a TreeNode item and 
everything works fine.  As you know, the ID is carried as an attr in the actual 
tree node, but you don't generally have to call

node.getAttr().put("id", idVal) 

The problem arises if you are using node.getAttr().put to store additional 
information.  If you do that, then you have to manually call 
node.getAttr().put("id", idVal) on each node.

Which struts2 version?
2.3.1.2

Which struts2-jquery plugin version?
3.3.0

Original issue reported on code.google.com by sco...@innoventsolutions.com on 19 Nov 2012 at 8:11

GoogleCodeExporter commented 9 years ago
Close this.  Looks like it was operator error.

Original comment by sco...@innoventsolutions.com on 19 Nov 2012 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 20 Nov 2012 at 12:10