This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A number of extensions, including RichFaces contain tree menu tags. That is the preferable approach, because these specialty tags are integrated into JSF, thus are usually simpler to code and more reliable to operate.
Of course, in the case of RichFaces, the underlying support is often accomplished using jQuery internally, but that's transparent to the developer.
An IDE is no substitute for an Intelligent Developer.