Hi everyone,
I'm a newbie with
JSF so please bear with me. I would like to pass a HTTP header value to my backing bean but I'm not sure how to go about doing so. At present, the user's input is passed on to my backing bean in the standard form of
<h:inputText value="#{userBean.userName}" />
However, I would like userName to be assigned the value of a HTTP header, which is in the form of:
String headVal = request.getHeader("shib host");
So basically, I would like headVal to be passed on to my backing bean instead of the user's input. How would I do this? Any help in this matter would be greatly appreciated. Cheers.