[richfaces-issues] [JBoss JIRA] Assigned: (RF-7203) contextMenu: onselect doesn't cancel the action if false is returned

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed May 20 18:04:57 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-7203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski reassigned RF-7203:
----------------------------------

    Assignee: Andrey Markhel  (was: Nick Belaevski)


> contextMenu: onselect doesn't cancel the action if false is returned
> --------------------------------------------------------------------
>
>                 Key: RF-7203
>                 URL: https://jira.jboss.org/jira/browse/RF-7203
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-menu, regression
>    Affects Versions: 3.3.1
>         Environment: RichFaces 3.3.1.GA, Seam 2.1.2.CR2
>            Reporter: Daniel Wiell
>            Assignee: Andrey Markhel
>            Priority: Critical
>             Fix For: 3.3.2.CR1
>
>
>     <h:outputLink id="link" value="#">
>         Click me!
>         <rich:componentControl event="onclick" for="contextMenu" operation="show"/>
>     </h:outputLink>
>     <rich:contextMenu id="contextMenu" attached="true" submitMode="ajax">
>         <rich:menuItem
>                 onselect="if(!confirm('After canceling this, an oncomplete popup shouldnt be shown')) return false;"
>                 oncomplete="alert('oncomplete');">
>             Select this
>         </rich:menuItem>
>     </rich:contextMenu>.
> The above snipped works as expected in 3.3.0.GA and cancels the action when the onselect returns false, but 3.3.1.GA ignores the return value and proceeds no matter what. 
> This is a showstopper for us when it comes to upgrading, as we use a similar approach as above to confirm removal of entries.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list