I have a JSF form in which there is one field(textfield), value in textfield say profileId, which I need to use in many pages, so how can we store it in a session, and also how can we retrieve it as we need?
In simple words set a variable value in JSF session and also get it.
Bind it to a session scoped managed bean.
with
You can access it in other beans by injecting it as
@ManagedProperty.