You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alec Swan <al...@gmail.com> on 2010/09/08 06:35:41 UTC
Prompt on file upload
Hello,
I would like to have an upload form
(org.apache.wicket.markup.html.form.Form) to prompt the user to
confirm their upload decision. I tried attaching a new
AjaxEventBehavior("onsubmit") to the form, but it does not get called.
How can I prompt the user when they initiate the upload?
Thanks,
Alec
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Prompt on file upload
Posted by Jeremy Thomerson <je...@wickettraining.com>.
On Tue, Sep 7, 2010 at 11:35 PM, Alec Swan <al...@gmail.com> wrote:
> Hello,
>
> I would like to have an upload form
> (org.apache.wicket.markup.html.form.Form) to prompt the user to
> confirm their upload decision. I tried attaching a new
> AjaxEventBehavior("onsubmit") to the form, but it does not get called.
>
> How can I prompt the user when they initiate the upload?
>
> Thanks,
>
> Alec
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
regular old javascript?
<form onsubmit="confirm('foo')" wicket:id="form">
....
</form>
--
Jeremy Thomerson
http://www.wickettraining.com