3 Replies Latest reply on Oct 10, 2007 4:10 AM by Lydia Ares

    Pojo constructor called twice - normal?

    Lydia Ares Newbie

      Hi,
      being a newbie to Seam and JSF I just built my first Seam webapp running in Tomcat 5.5 (Seam 1.2.1 GA + Facelets).
      In order to see when exactly my components (all Pojos) get instantiated I put some debug output in the components' constructors. Now I noticed that Seam, every time it creates a component, apparently calls the constructor twice, first directly then via javassist.
      I guess this is normal (because of the proxies?) but just wanted to be sure before putting expensive operations in the constructors...
      Thanks for information!