This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: backing bean is invoked three timeslightguard Mar 14, 2011 5:09 PM (in response to vdeminico)This is more of a JSF question. I think everyone that's done JSF development has seen this before. I'm honestly not sure why, but I suspect it has something to do with restoring the view, building up the component tree and rendering. Perhaps someone with more JSF in-depth knowledge will also respond. 
- 
        2. Re: backing bean is invoked three timesratking Mar 15, 2011 6:20 AM (in response to vdeminico)You should change the bean as the following: @Named public class UtenteController { @EJB UtenteService utenteService; private List<Utente> utenteList; private final Logger logger = Logger.getLogger(UtenteController.class); public List<Utente> getUtentiList() { logger.info("Invoco in Controller"); if (utenteList == null) { utenteList = utenteService.retriveUtenteList(); } return utenteList; } }How-to: avoid method or getter to be called several times by caching result 
 My Link
- 
        3. Re: backing bean is invoked three timesssachtleben.ssachtleben.gmail.com Mar 15, 2011 8:06 AM (in response to vdeminico)I think Jason is correct. If you also use the rendered tag also it will be called 6 times.
 
     
     
    