jsf 2 - Primefaces Datatable recreate viewScoped bean -


i have data table 5 columns. first column contains:

<p:column headertext="ordine" filterby="#{item.numeroordinelavoro}"           sortby="#{item.numeroordinelavoro}">      <p:commandlink value="#{item.numeroordinelavoro}"                    process="@this"                    action="#{bean_ordinilavoro.cmdseleziona_ordine}">          <f:setpropertyactionlistener target="#{bean_ordinilavoro.sel_ordinelavoro}"                                       value="#{item}" />     </p:commandlink> </p:column> 

bean_ordinilavoro viewscoped. bean_ordinilavoro.cmdseleziona_ordine redirects in new page.

every times click on commandlink bean_ordinilavoro recreated. problem.

<context-param>     <param-name>javax.faces.state_saving_method</param-name>     <param-value>server</param-value> </context-param> <context-param>     <param-name>javax.faces.partial_state_saving</param-name>     <param-value>false</param-value> </context-param> 

primefaces 3.5 , jsf 2.1.22.

i have read many post saying partial_state_saving = false enough in case doesn't work.

if use instead of works.

thanks lot. davide

when using action property of p:commandbutton, return value want navigate. if returning non-null value, current view terminate in favor of new one.

if want stay in same view, must return null value or void.

public string cmdseleziona_ordine() {     return null; } 

or

public void cmdseleziona_ordine() {  } 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -