Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add child to node in tree2?  RSS feed

 
Achchan Chaghi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a tree2 component with checkboxes on nodes. And a add button in my form and want to add a childeren to checked node when I press ADD button.
I do not know how to know which node is checked and how to generate the code for adding child node. Your help is so appreciated friends.
-Thanks
 
Kaise a.Zakkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

you can add whatever child nodes to any JSF component tags either it waw a
html renderer component tag ,or it was from the core tags
you simply nest a selectItems tag inside your parent tag , and configure the selecItems tag to point to watever UI commponents you want by writing the proger code at your configuration source file .
so that is it as a general look ,and the real implementation is a peice of cake , if your find yourself somehow misslead , go and read the JSF chapters 18-21 at the J2EE tutorial 1.4 last edition .
good luck :
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!