This will not help much,
The window (popup) will have its own close button (the famous x)
And even though you can catch that event in JavaScript there is not much you 
can do to prevent the window from closing anyway (although there are some 
internet explorer only tricks that can) so you can forget about warning a user 
like "hey this has not yet been saved, are you sure you want to close this 
window?".
Maybe it is possible to open another window upon closing (to do some cleaning), 
but with all those popup killers I'm not sure if that would work everywhere.

Maurice Marrink
Topicus

-----Oorspronkelijk bericht-----
Van: Ari Suutari [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 14 april 2005 7:20
Aan: wicket-user@lists.sourceforge.net
Onderwerp: Re: [Wicket-user] how to close a popup ?

Hi,
> popup page will be in a separare pagemap now, so this isn't necessary.
> we might want some way of removing the pagemap though... and this would
> be a good reason for a wicket close button or whatever... can someone bug
> this as an RFE against 1.1?

    I'll add it.

        Ari S.

>
> Maurice Marrink wrote:
>
>>Javascript I'm afraid.
>>Also don't forget to remove the popup page from the cache after your
>>done (session.remove() I believe) or you might find that your original
>>page has expired (when opening and closing a lot of popups).
>>
>>Maurice Marrink
>>
>>
>>-----Oorspronkelijk bericht-----
>>Van: Ari Suutari [mailto:[EMAIL PROTECTED] Verzonden: woensdag 13 april 2005 
>>12:27
>>Aan: wicket-user@lists.sourceforge.net
>>Onderwerp: [Wicket-user] how to close a popup ?
>>
>>Hi,
>>
>>I have a link in my application which is created like this:
>>
>>                EditLink link = new EditLink("editLink",
>>listItem.getModelObject());
>>                link.setPopupSettings(new PopupSettings());
>>
>>ie. it opens a new page in separate popup. It would be nice to create
>>buttons in this popup so that they close the popup after it has been
>>submitted.
>>
>>Is there a wicket-style way doing this or do I need to do it with
>>javascript
>>as usual ?
>>
>>    Ari S.
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Wicket-user mailing list
>>Wicket-user@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_ide95&alloc_id396&opĚk
>>_______________________________________________
>>Wicket-user mailing list
>>Wicket-user@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to