[richfaces-issues] [JBoss JIRA] Commented: (RF-7203) contextMenu: onselect doesn't cancel the action if false is returned
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Thu Nov 5 15:29:05 EST 2009
[ https://jira.jboss.org/jira/browse/RF-7203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493430#action_12493430 ]
Nick Belaevski commented on RF-7203:
------------------------------------
You can use external a4j:jsFunction and call it as a workaround
> 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: Nick Belaevski
> 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