http://cwiki.apache.org/WICKET/getting-user-confirmation.html
On Apr 1, 2008, at 9:54 PM, Pinger wrote:
I will look. However, if you could post a code example, you would be
my hero.
:)
freak182 wrote:
You need to extend AbstractBehavior of course and add some
javascript to
do the trick...you can use javascript already available or you can
customise to yuorself..im using jquery..you can google it :)
Pinger wrote:
That would be sweet.. how do I do that? Sorry I saw one example
for that
for the button but I could not get that could not get it working
for the
ajax button. If I can get this to work, I was going to see if the
developers want it for the release; I think it is a very common
behavior
that many people would use.
freak182 wrote:
You could add a behavior... e.g a confirmbehavior for your needs :)
Pinger wrote:
That is all well and good, but it does not
"Do Stuff"
now after i hit ok
djo.mos wrote:
Hi,
Pinger wrote:
I want to get a Yes/No confirm dialog, so I only "Do Stuff" if
they
say yes..
What kind of confirmation ? Javascript ? Html ?
for the first, you could use this
ajaxButton.add(new SimpleAttributeModifier("onclick", "return
confirm('Delete ?');"));
Cheers
--
View this message in context:
http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16435564.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]