4 Replies Latest reply on Aug 9, 2007 10:13 AM by jeje47

    Complete a form submission before opening a modalPanel

    jeje47

      Hi,

      I want to call a method from my backed bean and then open a modalPanel.
      I have written this code:

      <a:commandButton image="img/add3.png" action="#{userManager.fillAllGroups}" onclick="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">
       </a:commandButton>


      When i try it, the modal panel is opened before the action.
      What I'm doing wrong ? (I have tryied to replace the onclick attribute by oncomplete with no results)

      Thanks