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
    Affects Versions: 3.3.1
         Environment: RichFaces 3.3.1.GA, Seam 2.1.2.CR2
            Reporter: Daniel Wiell


    <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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to