myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pino Silvaggio (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-204) onclick rendered twice in commandLink
Date Mon, 23 May 2005 01:10:52 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-204?page=comments#action_66010 ]
     
Pino Silvaggio commented on MYFACES-204:
----------------------------------------

I added onclick on the first commandlink of page forceId.jsp in webapps/simple
and the problem is there. I see 2 onclick rendered.


> 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


Mime
View raw message