2 Replies Latest reply on Dec 2, 2013 3:16 AM by Manuel Moroni

    <a4j:commandButton> and oncomplete

    Manuel Moroni Newbie

      hi,

      i have the following component:

       

      <a4j:commandButton value="save" action="#{bean.save}" ajaxSingle="false" oncomplete="window.open('#{bean.contextPath}/pages/griglie/griglie_allegati.faces?prgAzione='+returnFunc('#{bean.prgAzioneRicla}')+'&sexId='+document.getElementById('adminConsoleForm:sexId').value,'FiltriPage'+document.getElementById('adminConsoleForm:sexId').value,'width=1100,height=400,resizable=yes,modal=yes,toolbar=no,scrollbars=yes,directories=no,location=no,locationbar=no');" reRender="grid" />

       

      i set the variable prgAzioneRicla on the method bean.save. when the windows opens bean.prgAzioneRicla appears to be null instead of the value it has benn populated with insire the bean.save method

       

      the returnFunc() is a javascript function that just returns the value passed after fire an alert

       

      how can i solve this?

       

      i'm using richfaces 3.3.3 and jsf 1.2

       

      thanks