Some @ManagedBean with @viewscoped will be cleared after reload page by clicking f5 or reload button on browser. If I correct, It should not be cleared.

How can i fix it.

asked 06.06.2018 at 23:08

trunglam's gravatar image

trunglam
(suspended)
accept rate: 0%

edited 06.06.2018 at 23:09


I had a similar issue with a ManagedBean. I could solve it by changing it to

javax.faces.bean.RequestScoped

Also I had to figure out to use the javax.faces.bean namespace rather then javax.annotation namespace which de IDE gave me as the first choice when I used CTRL + SPACE. This is also true for the ManagedBean annotation. And that makes "kinda" sense to me.

This worked for me in the designer V7.0.6.

However, I am not a real JSF developer. There might be more to it then I understand ;).

link

answered 13.09.2018 at 08:51

Roland%20Strobl's gravatar image

Roland Strobl
(suspended)
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×79
×2

Asked: 06.06.2018 at 23:08

Seen: 3,114 times

Last updated: 13.09.2018 at 08:51