Hi Guys,
I have implemented a <rich:tree> in a seperated JSP and have included to every page by using <jsp:include>
All the codings are hard coded in seperate managed bean,
TreeNodeImpl<TreeDomain> childConfiguration = new TreeNodeImpl<TreeDomain>();
treeDomain = new TreeDomain();
treeDomain.setNodeName("Configuration");
treeDomain.setNodeLink("#");
treeDomain.setType("child");
childConfiguration.setData(treeDomain);
clientAdmin.addChild(0, childConfiguration);
TreeNodeImpl<TreeDomain> childStudent = new TreeNodeImpl<TreeDomain>();
TreeDomain treeSupplyChain = new TreeDomain();
treeSupplyChain.setNodeName("Students");
treeSupplyChain.setNodeLink("admin/student.faces");
treeSupplyChain.setType("child");
childStudent.setData(treeSupplyChain);
childConfiguration.addChild(0, childStudent);
When ever i clicked a link page opens without a problem, but when i clicked another item in the tree, node link has changed
First click = "localhost:8080/admin/student.faces
Second Click = "localhost:8080/admin/admin/student.faces
As i have showed above link get changed in the second click, Can anyone give me an idea why is this happening and a solution too
Thank you very much in advance..