title: JSF 2.0 Managed Property object has two different instances, when I to open page and to do ajax request
body: <p>all</p>
  
  <p>I novice in JSF2 (used Mojarra + primeFaces on tomcat7) and I get strange behavior of ManagedProperty object:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public class CreateFactMB implements Serializable{
  
      @ManagedProperty(value="#{collectionFactTable}") 
      private CollectionFactTable collectionFactTable; //SessionBean
      ...
      //setters/getters
  </code></pre>
  
  <p>I printed object when I <strong>open page</strong> (refresh brouser) I see one instance of collectionTree </p>
  
  <pre><code>mbeans.CollectionFactTable@12803ba
  </code></pre>
  
  <p>But when I do ajax request</p>
  
  <pre><code>&lt;p:commandButton id="btn1" value="Save" update="growl"
                  actionListener="#{createFactMB.doUpdate}" /&gt;    
  </code></pre>
  
  <p>In <strong>doUpdate</strong> I see another instance of my collectionTree</p>
  
  <pre><code>mbeans.CollectionFactTable@625c49
  </code></pre>
  
  <p>It's problem because I can not do change while ajax action (because I have just copy)</p>
  
  <p>Anybody can help me? What I'M doing not right?</p>