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

    UserPrincipal can Lifecycle.getServletRequest but I cannot ?

    Leo Baschy Novice

      I see in UserPrincipal.java a

      ServletRequest servletRequest = Lifecycle.getServletRequest();

      I am trying the same in a Seam component

      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?