wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernesto Reinaldo Barreiro <reier...@gmail.com>
Subject Re: SimpleAttributeModifier on SubmitLink?
Date Tue, 03 Nov 2009 10:19:13 GMT
I have used ModalWindow for similar use cases... and then do the actual work
on the ok button of a modal confirmation dialog. Is that approach fine for
your use case?

Regards,

Ernesto

On Tue, Nov 3, 2009 at 10:23 AM, Peter Arnulf Lustig <uuuuuuau@yahoo.de>wrote:

> Hi,
>
> how can I achieve something like that:
>
>
> abschliessen = (SubmitLink) new SubmitLink("abschliessen", antwortForm) {
>            @Override
>            public void onSubmit() {
>                preQuestionInit();
>                Worker.ClosingTestprocedure(tp);
>                preQuestionInit();
>            }
>        }
>                .add(new SimpleAttributeModifier(
>                        "onclick",
>                        "return confirm('Information...');"));
>
> I detected, that the add Statement overwrites the "onclick" handler for the
> form submit! How can I have both: After click on the "Ok-Button" it should
> fire up the form.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message