myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-1867) <h:commandLink> with "onclick" method causes action not to be fired
Date Sun, 20 Apr 2008 23:42:25 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590820#action_12590820
] 

Leonardo Uribe commented on MYFACES-1867:
-----------------------------------------

I think this is related to MYFACES-1857, and this was fixed



> <h:commandLink> with "onclick" method causes action not to be fired
> -------------------------------------------------------------------
>
>                 Key: MYFACES-1867
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1867
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Guy Bashan
>
> This code:
>                 <t:commandLink immediate="true" onclick="document.getElementById('costModel').value
= 'cpd';"
>                                action="#{cmp_delivery.changeCostModelAction}"
>                                rendered="#{cmp_delivery.cmpCampaign.cmpCost.sysCostModel.value
!= 'cpd'}">
>                   <h:graphicImage url="images/icon/i_cpd.gif"/>
>                 </t:commandLink>
> causes the action: changeCostModelAction not to be activated on server side.
> When removing onclick event all works fine.
> Same problem happens with: <t:commandLink>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message