4 Replies Latest reply on Aug 9, 2007 10:13 AM by jérôme martinez

    Complete a form submission before opening a modalPanel

    jérôme martinez Newbie


      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})">

      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)