Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JSTL choose tag not working for RichFaces Tree Component

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 25457
178
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
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.
 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic