2 Replies Latest reply on Feb 16, 2011 12:47 PM by Juan Camilo Prada

    RichFaces4 show-case Tree example

    Juan Camilo Prada Newbie

      Looking at the code in the example I noticed that the main Node implementation used to populate the tree component, is filled in a method tagged with @PostConstruct annotation in TreeBean class. Please correct me if I'm wrong, but aren't @PostConstruct methods executed after bean has been created with all its managed properties and any resources been injected?

       

      This question is because I tried to implement rich:tree following (almost exactly) the showcase example. and when debugging the applications I found that rootNodes (the value parameter in  rich:tree) was always empty, so it means that it was being returned before the @PostConstruct method was executed.

       

      Please enlight me on this Issue

       

      Thanks