Calling JavaScript from JSF component as follows seems to be wrong. Can you tell me why?
<ui:define name="javascript">
<script type="text/javascript">
function myFunction( message ){
alert( message);
}
</script>
</ui:define>
<h:commandButton id="bas" value="bas"
onclick=" myFunction('call js Function'); " />