wood burning stoves 2.0*
The moose likes JSF and the fly likes viewScoped bean recreated on page reload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "viewScoped bean recreated on page reload" Watch "viewScoped bean recreated on page reload" New topic

viewScoped bean recreated on page reload

eve agostini
Ranch Hand

Joined: Nov 01, 2005
Posts: 43
Hi all, I have a little issue with viewScoped.

I have a very simple managed bean:

And an xhtml page:

If i click on the commandLink tha page is reloaded, the variable updated and everything works fine. But if I force page reload clicking on the browser button, the bean is instantiated again; so the constructor is called and the variable reinitialized. Is this the expected behavior or am I missing something?



I agree. Here's the link: http://aspose.com/file-tools
subject: viewScoped bean recreated on page reload
Similar Threads
Injection problem - not quite sure if this is something i should be using injection for
Form calling a session scoped backing bean constructor twice
Trying to change <ui:include> src tag dinamically
images gallery with primefaces