You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Werner Caacbay <we...@inode.at> on 2009/05/20 01:04:54 UTC

ModalDialog in a SubmitLink

Hello
I'm trying to submit a form with an AjaxSubmitLink which is in a
modalwindow.
I have to get a confirmation from the user during the submit process
which controll the submit.
I need suggestions on how I could realize the modaldialog for the user
in the submitLink and how i could interrupt the submitLink to wait for
the users choice.

thanks
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalDialog in a SubmitLink

Posted by Igor Vaynberg <ig...@gmail.com>.
add(new onsubmitlink(...) {
  oncomponenttag(tag) {
     super(tag);
     tag.put("onclick", "if (!confirm('message')) return;
"+tag.getattributes().get("onclick"));
  }
}

-igor

On Tue, May 19, 2009 at 4:04 PM, Werner Caacbay <we...@inode.at> wrote:
> Hello
> I'm trying to submit a form with an AjaxSubmitLink which is in a
> modalwindow.
> I have to get a confirmation from the user during the submit process
> which controll the submit.
> I need suggestions on how I could realize the modaldialog for the user
> in the submitLink and how i could interrupt the submitLink to wait for
> the users choice.
>
> thanks
> Werner
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org