3 Replies Latest reply on Oct 28, 2006 4:22 PM by rmemoria

    Trying to inject FacesContext generates

    rmemoria

      When in try to inject a FacesContext variable in a stateless bean I get the following message:

      Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: login.fc

      And bellow is part of the code:

      @Stateless
      @Name("login")
      public class LoginAction implements Login {
      @In FacesContext fc;


      if I remove the "@In FacesContext fc" declaration and replace inside the method

      fc = FacesContext.getCurrentInstance();

      everything works fine.

      Any tip?

      Ricardo Memoria