[
https://jira.jboss.org/jira/browse/RF-4454?page=com.atlassian.jira.plugin...
]
Ilya Shaikovsky updated RF-4454:
--------------------------------
Issue Type: Bug (was: Feature Request)
No an RFC but a bug for sure. onclick and etc standard handlers should be cancelable.
onsubmit support for panelMenuItem
----------------------------------
Key: RF-4454
URL:
https://jira.jboss.org/jira/browse/RF-4454
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Benoit Pflieger
Priority: Minor
Fix For: Wishes
It would be useful to provide support for onsubmit on a panelMenuItem in order to break
the submission of the form by returning false thanks to a javascript confirm dialog.
Here is the expected behavior but with a uggly gui experience:
<rich:panelMenuItem mode="none">
<h:commandButton value="#{data.text}" action="#{data.action}"
onclick="if(#{stateBean.dirty}){return confirm('Continue?'))}"/>
</rich:panelMenuItem>
--
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