You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/05/22 23:41:51 UTC

[jira] Commented: (MYFACES-204) onclick rendered twice in commandLink

     [ http://issues.apache.org/jira/browse/MYFACES-204?page=comments#action_66000 ]
     
sean schofield commented on MYFACES-204:
----------------------------------------

Unable to reproduce this problem.  I added an onClick to one of the command links in the forceId.jsp page (simpel webapp) and the generated HTML had the onclick js listed only once (at the beginning.)  I will take a look at your patch but I right now I can't verify there is a problem.

> 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