What is the a4j event sequence?
问题 What is the event sequence of a a4j:commandLink or a4j:commandButton ? Is it right: onclick -> actionListner -> oncomplete -> reRender ? Is reRender comes before oncomplete ? When action happens? 回答1: The onclick JavaScript is called the first when the enduser clicks the generated HTML element. When the JavaScript code does not return false , then all associated ActionListener implementations in the JSF side will be invoked, in the order of their association with the component. If the