aspose file tools*
The moose likes JSF and the fly likes JSTL choose tag not working for RichFaces Tree Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSTL choose tag not working for RichFaces Tree Component" Watch "JSTL choose tag not working for RichFaces Tree Component" New topic
Author

JSTL choose tag not working for RichFaces Tree Component

Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
I am new to RichFaces. I wanted to create a tree component in RichFaces, having the ability to display the nodes or not using a boolean variable in the node.

The tree node has a user date which is as follows



My Tree Class



My JSF Page is as follows



The above page does not display the nodes properly(the name is not displayed, instead the userobject is printed in the page as 'demo.user@10c276' etc), but if I change the line

to
the code seems to work fine, but why is my EL not functioning properly, I am using tomcat - 6.0.30, RichFaces 3.3.3, I have included jstl-1.2.jar in my war lib? Also the taglib
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> throws exception saying the attribute does not accept expressions and I changed to
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> which seems to work fine.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

JSTL doesn't work for a lot of things in JSF. JSF doesn't need JSTL. Get rid of it and life will be a lot more placid.

The RichFaces tree control has an API that determines whether a give subtree is opened or closed. It can be a bit hard to understand, we have at least 2 message threads in the forum where people worked out how to use this component. So I recommend searching for them. Also get out the RichFaces documentation (PDF) and spend some time going through it in detail. It won't be easy, but it's worth it.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL choose tag not working for RichFaces Tree Component
 
Similar Threads
syntax for sending a jsp hashmap variable to a jsp method
how to get sessionscope boolean varible
checking logic:match for multiple values
[Rich Faces + Facelets] rich:tree - problem with nodes.
Rich:tree and managing expand/collapse from first load