• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[Rich Faces + Facelets] rich:tree - problem with nodes.

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I've some problem with rich:tree component



I need to tree that dynamically choose node type. I've used <c:choose> component but it's not working.

my getNodeEmpty getter is like below:


So nodeEmpty value depends on accountId value , I dont know why when the tree is built, getter is not invoke, and tree is built with nodeEmpty default value which is 'false'.
Could somebody help me ?

 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying to mix JSTL with JSF is often likely to result in disappointment.

I believe that is an example of how to do this using RichFaces tags, but you'll have to look at the RichFaces documentation. Facelets doesn't factor into the solution.

Although I'm pretty sure that you can do this using only tags, you can definitely do it by writing node callbacks in a backing bean. That's illustrated in the RichFaces manual.
 
Karol Kornecki
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic