]
Alexander Dubovsky closed RF-7203.
----------------------------------
Assignee: Nick Belaevski (was: Alexander Dubovsky)
Verified
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: