RE: Confirmation dialog

2010-10-21 Thread Hill, Joel (DTMB)
and the Ajax script will get just get executed.) Hope that helps. Joel -Original Message- From: drf [mailto:davidrfi...@gmail.com] Sent: Wednesday, October 20, 2010 8:26 AM To: users@wicket.apache.org Subject: Re: Confirmation dialog Do not know what my mistake is in the previous example

Re: Confirmation dialog

2010-10-20 Thread drf
I am having a problem when using IAjaxDecorator as described. In the predecorate method, I have: return if(test-variable) return confirm('text'); + script; The confirm button appears, but even on clicking 'OK', it looks as if false is getting returned every time, because the code in

Re: Confirmation dialog

2010-10-20 Thread drf
Do not know what my mistake is in the previous example, but this works: return if (test) {if (!confirm('TEXT')) return false;} + script; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Confirmation-dialog-tp1844404p3003762.html Sent from the Users forum mailing list

Re: Confirmation Dialog Not Displayed For Button

2010-10-04 Thread Mathias Nilsson
I ran this in IE7, Firefox and Google Chrome and it worked fine. make sure you don't have a javascript error in the page and maybe add delete.add(new SimpleAttributeModifier( onclick, if (!confirm('Delete?') ){ return false; })); -- View this message in context:

RE: Confirmation Dialog Not Displayed For Button

2010-10-04 Thread Shelli Orton
@wicket.apache.org Subject: Re: Confirmation Dialog Not Displayed For Button I ran this in IE7, Firefox and Google Chrome and it worked fine. make sure you don't have a javascript error in the page and maybe add delete.add(new SimpleAttributeModifier( onclick, if (!confirm('Delete?') ){ return false

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
I have a form which allows a user to upload a file. The form is patterned after upload Wicket example. If the file being uploaded will overwrite an existing file I need to prompt the user if they want to replace the existing file or not. What's the best way to implement this functionality?

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
Sorry, there is a bug in the code: You should never keep a FileUpload object across requests. So, you need to copy the data into somewhere else. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Confirmation dialog during file upload

2010-06-18 Thread Alec Swan
Hello, If I understand your approach correctly, then the user would have to click Upload button again after being redirected MyPage to ConfirmSavePage, which is not desirable. I would like to implement the following interaction: 1. User clicks Upload button and form submission request is sent

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
1. User clicks Upload button and form submission request is sent to the server 2. The code on the server detect the file name collision and causes a ModalWindow to display These can be done with an AjaxButton to send the upload request. Then show the ModalWindow in onSubmit(). 3.1 If the

Re: Confirmation dialog

2010-01-28 Thread Pedro Santos
Similar: http://old.nabble.com/javascript-confirm---seems-to-work-fine-with-link-markup-but-not-with-button-markup-td27242553.html On Thu, Jan 28, 2010 at 5:00 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team lnkDelete.add(new SimpleAttributeModifier(onClick,return confirm('Are you sure

Re: Confirmation dialog

2010-01-28 Thread Andrew Lombardi
use an IAjaxCallDecorator dataContainer.add(new AjaxButton(removeSelectedValues) { @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {