This content has been marked as final.
Show 3 replies
-
1. Re: Cancel button with pop-up warning dialogue - navigation issues
idyoshin Jan 14, 2010 4:00 PM (in response to ibrewster)you can simply include primefaces ;) that would have a great-ajax-confirm dialog. And if you don't like injecting another AJAX library to your application you can digg into the code and reimplement that funcitonal with jquery not the YUI.
Regards,
Ilya Dyoshin
-
2. Re: Cancel button with pop-up warning dialogue - navigation issues
ibrewster Jan 14, 2010 4:45 PM (in response to ibrewster)Ilya, many thanks for your reply
So why is my example not working? And you're right we are trying to stick with RichFaces (which I'm also new to!) so some help with what to do with jQuery would be appreciated or a view of what to do to make it work without jQuery
Thanks again
Ian -
3. Re: Cancel button with pop-up warning dialogue - navigation issues
idyoshin Jan 14, 2010 5:30 PM (in response to ibrewster)you use javascript and don't call the JSF lifecycle when clicking the button :).
you should have a chain like this:
<a4j:commandButton action="/home.xhtml" onclick="if (!confirm('some info') ) {this.submit();}" value="some data submit" > </a4j:commandButton>
Regards,
Ilya Dyoshin