Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to view primefaces tree

 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to JSF so this is my first project.
My IDE is netbeans 7.0.1, Mojarra 2.1.1 and primefaces 2.2.1

I used the tree example via http://www.primefaces.org/showcase/ui/tree.jsf
While I manage to use other faclets from prime (for example p:button) the tree is not working
Can someone can please explained me what did I do wrong ?

Thanks



 
Pedro Henrique Pereira de Andrade
Greenhorn
Posts: 3
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Replace "#{node}" to "#{treeBean.node}" and test.

Ok
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still not working
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*I am not sure* what you are trying to do. but looking at your code I can figure out one syntactic error.
change value="#{treeBean.Root}" to value="#{treeBean.root}" .also *guess you are missing var attribute for p:tree tag*

just try
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic