which comes first..

<h:commandLink styleClass="resultName" value="#{s.name}, #{s.address1}, #{s.address2}, #{s.city}, #{s.country}" action="#{adminController.editSupplier}" actionListener="#{adminController.editExpiringSupplier}" immediate="true"/>

in this code snippet, when you click on the link what does it do first? the action or the actionListerner? or does on do one of them? thanks in advance!! ^_^

[530 byte] By [Arch_Bytesa] at [2007-11-26 22:31:02]
# 1
Just debug it .. ? Add a logger or sysout to the methods and see in which order they occur in the systemout.log =)Well, I have tried it once earlier and I can say that the actionListener gets invoked first and then the action.
BalusCa at 2007-7-10 11:36:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Whenever immediate is true action listener gets invoked first.Action conntroller always get executed after action listener.But if immediate is false then first validation takes place and then action listener gets invoked.
Friend4evera at 2007-7-10 11:36:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanks guys..^_^
Arch_Bytesa at 2007-7-10 11:36:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...