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
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
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
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:
@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
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?
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
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
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
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
use an IAjaxCallDecorator
dataContainer.add(new AjaxButton(removeSelectedValues) {
@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
11 matches
Mail list logo