title: JSF 2.0 @ViewScoped losing data
body: <p>The main situation is that i have a @ViewScoped that works as a @RequestScoped.</p>
  
  <p>Atm, i have a view that contains a List of items with a @RequestScoped bean behind. When i want to update one of this items i navigate to a view with a @ViewScoped behind.</p>
  
  <p>When i do a post from this view, i come back to the list view and the @ViewScoped gets destroy. so far, so good.</p>
  
  <p>The problem is that, when i am updating the view with the @ViewScoped bean, all the bean's attribute are null. Its looks like a @RequestScoped.
  Also i have a @PostConstruct method that is call every time and it shouldn't.</p>
  
  <p>In the view with the @ViewScoped i make use of the followng tags: h:selectOneMenu , rich:fileUpload , a4j:repeat , a4j:ajax , h:commandLink in all over the code.</p>
  
  <p>I didn't not put the full code as is a big form what i have.</p>
  
  <p>I have not clue what's happening as it was not happening this before. If need more info pls ask.</p>
  
  <p>Regards.</p>
  
  <p>edit:</p>
  
  <p>When i execute a method that makes a post (its saves the item's data on DB) the bean has all the data. But when i want to obtain data from it is when the bean is empty.</p>
  
  <p>Example: </p>
  
  <pre><code>&lt;h:outputLabel value="#{locale.link}:" /&gt;
                  &lt;h:inputText value="#{newsBean.newsLink}"
                      disabled="#{not newsBean.editPage}" /&gt;
                  &lt;h:link value="#{newsBean.newsLink}" target="_blank"/&gt;
  </code></pre>
  
  <p>When i press on the link, the bean is empty so i get null pointer to the item "news".</p>