0 Replies Latest reply on May 12, 2010 9:10 PM by deanhiller2000

    facesMessages not being injected(and no binding at all)

    deanhiller2000

      I have no component binding, but facesMessages is not being injected in a certain use case.  Here is my bean with fields(didn't copy the methods)...


      @Name("login")
      public class LoginAction {
      
              private static final Logger log = LogManager.getLogger(LoginAction.class);
      
              @In
              private transient FacesMessages facesMessages;
              @In
              private transient FacesContext facesContext;
              @In
              private transient EntityManager entityManager;
      
              @In(required = false)
              @Out(required = false)
              private Users user;



      On a ConcurrentRequestTimeoutException, it redirects to error page and calls #{login.needLoginButton} but that fails with can't inject facesMessages which seems very odd.


      I also on the debug page don't see a facesMessages component.  I see the facesContext one.  When I put @In(required=false), the error changes to can't inject entityManager....what great fun.