Hello,
I have a popup with a form.A simple ok/cancel thing.

what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.

i have been doing some _javascript_ tricks,but the redirect is giving me some headaches.
(this is for closing the current popup window,and refreshing the 'parent' window,so i can actually see what's been changed in the popup-form.)

add(new AjaxSubmitButton("submit", this) {
                protected void onSubmit(AjaxRequestTarget target, Form form) {
                    target.addJavascript("window.opener.location.reload (true);");
                    target.addJavascript("window.close();");
                    target.addJavascript("window.location.reload(true);");
                }
            });

Any ideas?
maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'.

I am using wicket 1.2.1

Thanks,
Alex
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to