[ http://issues.apache.org/jira/browse/MYFACES-204?page=all ]

Pino Silvaggio updated MYFACES-204:
-----------------------------------

    Attachment: myfaces-204.patch

Fixed the onclick rendered twice.

> onclick rendered twice in commandLink
> -------------------------------------
>
>          Key: MYFACES-204
>          URL: http://issues.apache.org/jira/browse/MYFACES-204
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Peter Mahoney
>  Attachments: myfaces-204.patch
>
> 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="#{attachment.filename}"/>        
> </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();">

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to