• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL choose tag not working for RichFaces Tree Component

 
Kumar Jaya
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic