[ 
https://issues.apache.org/jira/browse/TOBAGO-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481067
 ] 

Arvid Hülsebus commented on TOBAGO-317:
---------------------------------------

It looks like the link/a needs the return. For buttons it seems to work 
without. My test cases work with the patch, but the passed onclick handler may 
already contain a "return" statement. In this case we would have to change the 
concatenation of the two expressions with &&.

> tc:link action ignored when onclick is set
> ------------------------------------------
>
>                 Key: TOBAGO-317
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-317
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>            Reporter: Dennis Kieselhorst
>             Fix For: 1.0.11
>
>
> tc:link with onclick:
> <tc:link action="#{mmaController.deleteItem}" onclick="confirm('Wirklich 
> löschen?')" actionListener="#{mmaController.selectItem}">
> result: <a href="#" onclick="confirm('Wirklich löschen?')" 
> class="tobago-link-default " id="page:_idJsp31:3:_idJsp40" 
> name="page:_idJsp31:3:_idJsp40">
> tc:link without onclick:
> <tc:link action="#{mmaController.deleteItem}" 
> actionListener="#{mmaController.selectItem}">
> result: <a href="javascript:Tobago.submitAction('page:_idJsp31:3:_idJsp40', 
> true);" class="tobago-link-default " id="page:_idJsp31:3:_idJsp40" 
> name="page:_idJsp31:3:_idJsp40">
> should be:
> <a href="javascript:Tobago.submitAction('page:_idJsp31:3:_idJsp40', true);" 
> onclick="confirm('Wirklich löschen?')" class="tobago-link-default " 
> id="page:_idJsp31:3:_idJsp40" name="page:_idJsp31:3:_idJsp40">

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

Reply via email to