<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: ManagedBean with @Viewscoped is cleared after reload page by clicking f5 or reload button on browser</title><link>https://answers.axonivy.com/questions/3315/managedbean-with-viewscoped-is-cleared-after-reload-page-by-clicking-f5-or-reload-button-on-browser</link><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;How can i fix it.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3315/managedbean-with-viewscoped-is-cleared-after-reload-page-by-clicking-f5-or-reload-button-on-browser" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 13 Sep 2018 08:51:26 -0400</lastBuildDate><item><title>Answer by Roland Strobl</title><link>https://answers.axonivy.com/questions/3315/managedbean-with-viewscoped-is-cleared-after-reload-page-by-clicking-f5-or-reload-button-on-browser/3422</link><description>&lt;p&gt;I had a similar issue with a ManagedBean. I could solve it by changing it to&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;javax.faces.bean&lt;/strong&gt;.RequestScoped&lt;/p&gt;
&lt;p&gt;Also I had to figure out to use the &lt;strong&gt;javax.faces.bean&lt;/strong&gt; namespace rather then &lt;strong&gt;javax.annotation&lt;/strong&gt; 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.&lt;/p&gt;
&lt;p&gt;This worked for me in the designer V7.0.6.&lt;/p&gt;
&lt;p&gt;However, I am not a real JSF developer. There might be more to it then I understand ;).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Strobl</dc:creator><pubDate>Thu, 13 Sep 2018 08:51:26 -0400</pubDate><guid>https://answers.axonivy.com/questions/3315/managedbean-with-viewscoped-is-cleared-after-reload-page-by-clicking-f5-or-reload-button-on-browser/3422</guid></item></channel></rss>