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.
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> |