[richfaces-issues] [JBoss JIRA] Created: (RF-4454) onsubmit support for panelMenuItem
Benoit Pflieger (JIRA)
jira-events at lists.jboss.org
Thu Sep 11 07:47:38 EDT 2008
onsubmit support for panelMenuItem
----------------------------------
Key: RF-4454
URL: https://jira.jboss.org/jira/browse/RF-4454
Project: RichFaces
Issue Type: Feature Request
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
More information about the richfaces-issues
mailing list