You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Lindner <li...@visionet.de> on 2009/12/09 08:26:32 UTC

2 ModalWIndows at once

I try to open two modal Windows at once

	AjaxLink
		onClick(AjaxRequestTarget) {
			modal1.show(target);
			modal2.show(target);
		}

Both modal windows are Pages, no panels. Both modal windows are opened
as expected, modal2 above modal1. But when I close modal2 in IE, modal1
does not get the focus, my applicationis no more responding at all. In
FF, Chrome, Safari it works. After closing modal2, modal1 gets the
focus.

Is it forbidden to open 2 modal windows at once?

Stefan

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


RE: 2 ModalWIndows at once

Posted by Stefan Lindner <li...@visionet.de>.
Solved. I took a look into AjaxLazyLoadPanel and used a AbstractDefaultAjaxBehavior.respond. Thank you all.

Stefan

-----Ursprüngliche Nachricht-----
Von: Stefan Lindner [mailto:lindner@visionet.de] 
Gesendet: Mittwoch, 9. Dezember 2009 08:54
An: users@wicket.apache.org
Betreff: AW: 2 ModalWIndows at once

Hi Igor,

how can I make modal2 the child of modal1. Or how can I open modal2 automatically after modal1 was opened? Fake an ajax roundtrip with a self updating timer?

Stefan

-----Ursprüngliche Nachricht-----
Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com] 
Gesendet: Mittwoch, 9. Dezember 2009 08:45
An: users@wicket.apache.org
Betreff: Re: 2 ModalWIndows at once

opening two modals doesnt really make sense unless one is the parent
of the other...

-igor

On Tue, Dec 8, 2009 at 11:26 PM, Stefan Lindner <li...@visionet.de> wrote:
> I try to open two modal Windows at once
>
>        AjaxLink
>                onClick(AjaxRequestTarget) {
>                        modal1.show(target);
>                        modal2.show(target);
>                }
>
> Both modal windows are Pages, no panels. Both modal windows are opened
> as expected, modal2 above modal1. But when I close modal2 in IE, modal1
> does not get the focus, my applicationis no more responding at all. In
> FF, Chrome, Safari it works. After closing modal2, modal1 gets the
> focus.
>
> Is it forbidden to open 2 modal windows at once?
>
> Stefan
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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


Re: 2 ModalWIndows at once

Posted by Igor Vaynberg <ig...@gmail.com>.
i guess that may work, or add an ajax call back to the ondomready event

-igor

On Tue, Dec 8, 2009 at 11:54 PM, Stefan Lindner <li...@visionet.de> wrote:
> Hi Igor,
>
> how can I make modal2 the child of modal1. Or how can I open modal2 automatically after modal1 was opened? Fake an ajax roundtrip with a self updating timer?
>
> Stefan
>
> -----Ursprüngliche Nachricht-----
> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Gesendet: Mittwoch, 9. Dezember 2009 08:45
> An: users@wicket.apache.org
> Betreff: Re: 2 ModalWIndows at once
>
> opening two modals doesnt really make sense unless one is the parent
> of the other...
>
> -igor
>
> On Tue, Dec 8, 2009 at 11:26 PM, Stefan Lindner <li...@visionet.de> wrote:
>> I try to open two modal Windows at once
>>
>>        AjaxLink
>>                onClick(AjaxRequestTarget) {
>>                        modal1.show(target);
>>                        modal2.show(target);
>>                }
>>
>> Both modal windows are Pages, no panels. Both modal windows are opened
>> as expected, modal2 above modal1. But when I close modal2 in IE, modal1
>> does not get the focus, my applicationis no more responding at all. In
>> FF, Chrome, Safari it works. After closing modal2, modal1 gets the
>> focus.
>>
>> Is it forbidden to open 2 modal windows at once?
>>
>> Stefan
>>
>> ---------------------------------------------------------------------
>> 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
>
>
> ---------------------------------------------------------------------
> 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


AW: 2 ModalWIndows at once

Posted by Stefan Lindner <li...@visionet.de>.
Hi Igor,

how can I make modal2 the child of modal1. Or how can I open modal2 automatically after modal1 was opened? Fake an ajax roundtrip with a self updating timer?

Stefan

-----Ursprüngliche Nachricht-----
Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com] 
Gesendet: Mittwoch, 9. Dezember 2009 08:45
An: users@wicket.apache.org
Betreff: Re: 2 ModalWIndows at once

opening two modals doesnt really make sense unless one is the parent
of the other...

-igor

On Tue, Dec 8, 2009 at 11:26 PM, Stefan Lindner <li...@visionet.de> wrote:
> I try to open two modal Windows at once
>
>        AjaxLink
>                onClick(AjaxRequestTarget) {
>                        modal1.show(target);
>                        modal2.show(target);
>                }
>
> Both modal windows are Pages, no panels. Both modal windows are opened
> as expected, modal2 above modal1. But when I close modal2 in IE, modal1
> does not get the focus, my applicationis no more responding at all. In
> FF, Chrome, Safari it works. After closing modal2, modal1 gets the
> focus.
>
> Is it forbidden to open 2 modal windows at once?
>
> Stefan
>
> ---------------------------------------------------------------------
> 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


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


Re: 2 ModalWIndows at once

Posted by Igor Vaynberg <ig...@gmail.com>.
opening two modals doesnt really make sense unless one is the parent
of the other...

-igor

On Tue, Dec 8, 2009 at 11:26 PM, Stefan Lindner <li...@visionet.de> wrote:
> I try to open two modal Windows at once
>
>        AjaxLink
>                onClick(AjaxRequestTarget) {
>                        modal1.show(target);
>                        modal2.show(target);
>                }
>
> Both modal windows are Pages, no panels. Both modal windows are opened
> as expected, modal2 above modal1. But when I close modal2 in IE, modal1
> does not get the focus, my applicationis no more responding at all. In
> FF, Chrome, Safari it works. After closing modal2, modal1 gets the
> focus.
>
> Is it forbidden to open 2 modal windows at once?
>
> Stefan
>
> ---------------------------------------------------------------------
> 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