This sounds like a revival of your earlier question
https://coderanch.com/t/544124/JSF/java/obtain-response-object-jsf . As a rule, we'd rather you just continue the original
thread, to avoid confusion. Then again, we also discourage "bumping", so you can't win.
Your problem is that you assumed the solution before considering what the real question was. What you ACTUALLY want is access to cookies. The fact that HttpServletResponse is the low-level mechanism that does that isn't really the point, since, as I mentioned in the previous thread, the
servlet response stream isn't really yours to play with in
JSF.
On the other hand, I managed to find a much more elegant solution about 3 entries down on the Google list from the one you did:
http://stackoverflow.com/questions/5557710/how-to-use-cookies-in-jsf