This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes [Rich Faces + Facelets] rich:tree - problem with nodes. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » JSF
Bookmark "[Rich Faces + Facelets] rich:tree - problem with nodes." Watch "[Rich Faces + Facelets] rich:tree - problem with nodes." New topic
Author

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

Karol Kornecki
Greenhorn

Joined: Nov 03, 2009
Posts: 14
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 ?


Sun Certified Programmer for Java Platform 6.0 (96%)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16460
    
  23

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Karol Kornecki
Greenhorn

Joined: Nov 03, 2009
Posts: 14
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Rich Faces + Facelets] rich:tree - problem with nodes.