but onClick event is triggered after the action tag or before?
If is before, there is a way to excute a scritp after the action? Anton Gavazuk wrote: > > Of course use onClick attribute. > > 2009/3/26 drizzo <[email protected]> > >> >> Hi everybody, >> >> i have this code: >> >> <tr:commandButton id="responseButton" >> action="#{responseMgdBean.rResponse}" >> icon="/images/ico_#{responseButton.behaviour}.gif" >> binding="#{dealCalculatorMgdBean.buttonAccepted}" >> text="#{responseButton.label} " >> rendered="#{responseButton.visible}" >> shortDesc="#{responseButton.responseValue}" >> blocking="true"> >> <tr:setActionListener >> from="#{responseButton.responseValue}" >> to="#{responseMgdBean.responseValue}" /> >> <tr:setActionListener from="#{responseButton.behaviour}" >> to="#{responseMgdBean.behaviour}" /> >> <tr:setActionListener >> from="#{dealCalculatorMgdBean.dealVariantIds}" >> to="#{responseMgdBean.selectedVariantIds}" /> >> </tr:commandButton> >> >> now I should run a js code before or after to execute the action. >> Which the best solution to do this? >> Is it possible use the onClick attribute? >> >> Please can you help me? >> >> Thanks >> >> >> -- >> View this message in context: >> http://www.nabble.com/Javascript-in-button-element-tp22719877p22719877.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Javascript-in-button-element-tp22719877p22720303.html Sent from the MyFaces - Users mailing list archive at Nabble.com.

