Specifically I refer to this example:
<h:panelgroup>
<a4j:support event="onlick" action="do1"/>
<h:commandbutton id="1".../>
<h:commandbutton id="2".../>
<h:commandbutton id="3"...>
<a4j:support event="onlick" action="do2"/>
</h:commandbutton>
</h:panelgroup>
My questions –
- If I click one of the buttons in the panelgroup, will do1() fire?
- If I click the third button will do1() and do2() fire? (What’ll happen?)
I’m asking instead of just trying in a sandbox because I hope to understand a little behind the scenes why the specific behavior occurs.
Thanks!
Ok. Tested it and this is the result:
For this Code:
If I click in panel1 I get:
If I clock on the button I get:
If I click in panel2 I get:
So the answer to my question is that all support objects catch events and the order they are called is from father to son.