1 Reply Latest reply on Dec 8, 2012 12:22 PM by strannik

    a4j:commandButton issue

    strannik

      Hi

       

      I have the following code

       

      <a4j:commandButton
      oncomplete="alert('Two');" value="#{msg['buttons.save']}">
      <a4j:ajax event="click" oncomplete="alert('One')" />
      </a4j:commandButton>

       

      When click the button one message box is brought up(with 'One' text). However the second message box

      is never shown. Is it bug or correct behavior? Please advise on that.

        • 1. Re: a4j:commandButton issue
          strannik

          The more appropriate solution is two invoke two JavaScript functions directly(which was not available before):

           

          <a4j:commandButton






          oncomplete="alert('One');alert('Two');" value="#{msg['buttons.save']}">





          </a4j:commandButton>