Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0
-
None
-
None
Description
A user defined onclick is both prepended to the JSF generated javascript and also passed through:
<x:commandLink action="#
{attachment.open}" onclick="myFunction();">
<h:outputText value="#
"/>
</x:commandLink>
Renders as:
<a href="#" onclick="myFunction();;clear_emailview_3Amyform();document.forms['myview:myform'].elements['myview:myform:_link_hidden_'].value='myview:myform:attachments:0:_id180';if(document.forms['myview:myform'].onsubmit)
{document.forms['myview:myform'].onsubmit();}document.forms['myview:myform'].submit();return false;" id="myview:myform:attachments:0:_id180" onclick="myFunction();">