HTML Code:
Hey Gary Thanks for replied me . I would like to popup treepanel based on database table column1 as a Parent Node and Column2 as a Child Node using server side spring mvc?
My Table like
Column -1(Item) Column-2(Desc)
Sony Sony Desc
Lenovo Lenovo Desc
Iphone Iphone Desc
Code:
//Server Side Spring MVC
My TreeNode Java Class variables are
int id , String text , String item ,String Desc ,Boolean leaf =false, List<TreeNode> child ;
//getter and Setter
@RequestMapping(value="/.getExport")
protected @RespnseBody getExport(){
//Here I am writing list Tree Node but Child node I cannot get it ?
List<TreeNode> list = new ArrayList<TreeNode>();
List<TreeNode> listItem = treeNodeService.getAll();
for(TreeNode treenode:listItem){
//here I would like to add Child Node how could I add each Column1 Parent Item column as Child Desc Column2 could you please let me know or any mistaken made let me know ?
}