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

    Trying to inject FacesContext generates

    Ricardo Memoria Novice

      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:

      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