aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "viewScoped bean recreated on page reload" Watch "viewScoped bean recreated on page reload" New topic
Author

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?

Thanks

Eve

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: viewScoped bean recreated on page reload