[
https://jira.jboss.org/jira/browse/RF-7203?page=com.atlassian.jira.plugin...
]
Peter Davis commented on RF-7203:
---------------------------------
Thanks.
Another workaround: throw an exception instead of "return false".
if (wouldReturnFalse) throw 'TODO: Ignore this exception: Workaround for JBoss
RF-7203: no server side action';
I like the a4j:jsFunction idea, though. Only problem being that 6 menu require 6
functions.
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