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?