1 Reply Latest reply on Aug 24, 2010 5:19 PM by cbensemann

    Close modalPanel after submit

    mireksz.m.szajowski.streamsoft.pl

      Hello,
      I have modalPanel which contains form submiting by a4j:commandButton.
      I want close this modalPanel on success form submiting it means without errors.


      When I use


      <a4j:commandButton oncomplete="closeModalWIndow()"/>



      its not work corretly because close window even when are validation errors.
      How to resolve this problem



      Best regards
      Mirek