Storing a http session attribute in database
问题 How can I pass an injected http session attribute (see below), along with other values (informe by the user) and save them using JPA? The session attribute is correctly displayed and injected, but I need to pass it using the selected to be stored in the database (actually, it passess null). The JSF: <p:outputLabel value="UserID (the sessionAttribute):" for="userID" /> <p:inputText id="userID" value="#{userBean.myUser.xChave}" title="userID" /> <p:outputLabel value="Type the Reason:" for=