[richfaces-issues] [JBoss JIRA] (RF-11971) rich:menuItem onclick return value ignored

Jan Papousek (JIRA) jira-events at lists.jboss.org
Fri Mar 16 11:23:47 EDT 2012


    [ https://issues.jboss.org/browse/RF-11971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677330#comment-12677330 ] 

Jan Papousek edited comment on RF-11971 at 3/16/12 11:22 AM:
-------------------------------------------------------------

Verified. When 'false' is returned from onclick handler, it'll prevent action execution.

A note: 'null' has no effect.
                
      was (Author: jpapouse):
    Verified. When it's return 'false' from onclick handler, it'll prevent 
                  
> rich:menuItem onclick return value ignored
> ------------------------------------------
>
>                 Key: RF-11971
>                 URL: https://issues.jboss.org/browse/RF-11971
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.2.0.Final
>         Environment: Chrome / glassfish 3.1.1 / mojarra 2.1.6
>            Reporter: Brendan Healey
>            Assignee: Lukáš Fryč
>             Fix For: 4.2.1.CR1
>
>
> My expectation was that using rich:menuItem onclick="if(!confirm('#{msgs.playerConfirmDelete}')) return false;"
> (and selecting cancel) would prevent any action routines being called, as is common
> with components such as h:commandButton. As it stands the return value is ignored and
> processing continues with return true or return false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list