You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bernd Becker <be...@gsz-together.de> on 2019/03/05 19:35:00 UTC

[Tobago] Calling JavaScript after pressing a button

Dear all,

what is the easiest way to call a JavaScript function after pressing a button in Tobago 4.3.2?

I tried to use onevent in a f:ajax command (see below) - but it doesn’t work.



<tc:button image="fa-copy">
	<f:ajax execute=":::formulierungen :::hiddenField" render=":::formulierungen"
		listener="#{schuelerfuerfachHandler.copyToClipboard}" onevent="setClipboard"/>
</tc:button>



Regards

Bernd Becker