Welcome to the JavaRanch, Amit! We'd prefer that you employ year real last name on your displayname, however. See
http://www.javaranch.com/name.jsp
There are 2 ways I could interpret your question.
If you are asking specifically about GUI tree controls, there are no tree controls in the core JSF. However a number of extensions to JSF exist that do implement tree controls as well as other popular GUI control types not supported by basic HTML.
If you are asking about the JSF Component Tree object, that's pretty much a straightforward compilation of the XML that defined the View being processed.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.