JSF Pages call ManagedBeans that are not defined on the page and call all getters sometimes more tha
        Posted  
        
            by Bill Leeper
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Bill Leeper
        
        
        
        Published on 2010-04-20T19:33:30Z
        Indexed on 
            2010/04/20
            20:33 UTC
        
        
        Read the original article
        Hit count: 242
        
I have several JSF pages that are initializing and accessing ManagedBeans that are not even used on that page. This is creating a really hairy problem for initialization. I either have to make them all session scope and continually make calls to re-inialize or take the performance hit of having them read large amounts of data from the DB whenever they decide to initialize.
Some of the managed beans being accessed are not even defined on the page in question.
I have done some optimization based on comments related to multiple calls to getters, but I still have the issue that I have a very specialized (and expensive to initialize) bean that is getting called when I don't want it initialized.
Any insight into why/what JSF calls might do something like this.
I have a very complex page making use of JSTL, Tomahawk and standard JSF tags.
I could include code, but its very complex and sensitive in nature.
© Stack Overflow or respective owner