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
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.
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.
An IDE is no substitute for an Intelligent Developer.