Yes, you understood it correctly. The view is basically stored in the session scope. The session scope is in JSF backed by the Servlet's HttpSession
. All session attributes are supposed to implement Serializable
, this because the average servletcontainer may persist session data to harddisk to be able to survive heavy load and/or reviving sessions during server restart.
Storing raw Java objects on harddisk is only possible if the respective class implements Serializable
. Then ObjectOutputStream
can be used to write them to harddisk and ObjectInputStream
to read them from harddisk. The servletcontainer manages this all transparently, you actually don't need to worry about it. JSF is just giving a warning so that you understand the risks.