Questions tagged [view-scope]

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.

258 questions
-1
votes
1 answer

How to refresh ViewScoped(Omnifaces) page on data change?

I have some Category model, that is organized as adjacency list. So when i am adding new one, i format current list so it has viewable hierarchy. For this i use Omnifaces ViewScoped bean. Upon loading data i format it and display it in…
cvetan
  • 393
  • 1
  • 3
  • 19
-1
votes
1 answer

I'm trying to initilize an attribut in a bean with @viewScoped but it does not work

hello everyone I'm trying to build a webpage with two oneMenu the second one depending on the second one. My XHTML file is below as well as my bean. when I try to create a new "structureAttache" I have the following…
Vivien SA'A
  • 727
  • 8
  • 16
-2
votes
1 answer

Changing SessionScoped to ViewScoped?

I'm new to jsf, beans and everything but I need to change a sessionscoped bean to viewscoped in a finished project. Where do I start? Appearently changing "SessionScoped" to "ViewScoped" doesnt work :).
palindrom
  • 18,033
  • 1
  • 21
  • 37
1 2 3
17
18