title: Primefaces Datatable recreate viewScoped bean
body: <p>I have a data table with 5 columns. The first column contains:</p>
  
  <pre><code>&lt;p:column headerText="Ordine" filterBy="#{item.numeroOrdineLavoro}"
            sortBy="#{item.numeroOrdineLavoro}"&gt;
  
      &lt;p:commandLink value="#{item.numeroOrdineLavoro}"
                     process="@this"
                     action="#{Bean_OrdiniLavoro.cmdSeleziona_Ordine}"&gt;
  
          &lt;f:setPropertyActionListener target="#{Bean_OrdiniLavoro.sel_OrdineLavoro}" 
                                       value="#{item}" /&gt;
      &lt;/p:commandLink&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>Bean_OrdiniLavoro is ViewScoped.
  Bean_OrdiniLavoro.cmdSeleziona_Ordine redirects in a new page.</p>
  
  <p>Every times i click on the commandlink Bean_OrdiniLavoro is ReCreated. This is the problem.</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
      &lt;param-value&gt;server&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.PARTIAL_STATE_SAVING&lt;/param-name&gt;
      &lt;param-value&gt;false&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>Primefaces 3.5 and JSF 2.1.22.</p>
  
  <p>I have read many post saying that PARTIAL_STATE_SAVING = false is enough
  But in this case it doesn't work. </p>
  
  <p>If I use a  instead of  it works.</p>
  
  <p>thanks a lot.
  Davide</p>