The View Scope means that you can keep the object alive as long as you are staying on the view (page).
The @ViewScoped
has been introduced by JSF 2.0 specification. In a nutshell the data which is @ViewScoped
will keep living as long as you don't navigate to another page to itself. The view scope is very convenient, since it allows the pattern of initializing data when you first access a page (via a non-faces request, which is typically a GET request) and then keep that data when you work on the page, doing post-backs, AJAX requests, etc.