0 Replies Latest reply on Mar 8, 2007 11:24 AM by codelion

    UserPrincipal can Lifecycle.getServletRequest but I cannot ?

    codelion

      I see in UserPrincipal.java a

      ServletRequest servletRequest = Lifecycle.getServletRequest();


      I am trying the same in a Seam component

      @Name("tricky")
      public class Tricky {


      of mine where I'd ultimately like to get to the headers.

      Problem is when I'm having a page action calling an action in Tricky then Lifecycle.getServletRequest() returns null.

      How do I get to the ServletRequest or the headers inside an action method?