I would like to know how can i read a value of input text from the managed bean.
I know it is possible to read this way and it is very stright forward.
<h:inputText id="username" value="#{mylogin.username}" required="true" />
But what if lets say i have a value like
<h:inputText id="username" value="some_value" required="true" />
And i want to read this “some_value” in my managed bean.
Is it possible ?
Another question is it possible to access to the session variables in managed bean or should i somehow pass them to there ?
In the latter case that
some_valueis not bean managed, IMHO. Nonetheless, you can read that. Do something like this,Similarly, regarding accessing session variable,