• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF tree structure

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am new to jsf i have been given a task to create a tree structure in jsf but cant use richfaces and primefaces.. Can anyone tell me how to do it. I need a complete project for reference as i am to totally new to this. :confused: :confused:
 
Saloon Keeper
Posts: 27764
196
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
There isn't any support for a collapsible tree in the base JSF system. JSF's UI components are based on HTML controls, and there's no HTML tree component, either.

It's not a simple task to create a UI tree component in HTML or core JSF. It's not even that simple when you use a pre-debugged UI tree such as the ones in RichFaces and PrimeFaces.
 
Amrita SeungJo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you TIM but i just wanted to know is it possible to do the same by creating custom tags???
 
Tim Holloway
Saloon Keeper
Posts: 27764
196
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
Obviously. After all, the RichFaces and PrimeFaces people did so!

However, creating custom JSF tags is not something to do just to while away an idle afternoon. And if you do create one, I'd recommend using the xhtml method over custom Java code, as it's a lot simpler and less likely to break when JSF's next release comes out.

In short, if you attempt this, expect to spend a LOT of time and effort (== money, if you're doing it for business purposes). Not to mention the annoyance of having to drop everything and go fix bugs as they pop up.

Unless you're authoring your own alternative JSF tagset with commercial intent or simply want to muck around in JSF's darker levels, it would be far more productive to simply use an existing pre-debugged tree control. You'll spend quite enough time on that, I can attest from experience.
 
Goodbye moon men. Hello tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic