well i dont think that will work, the onSubmit is called on the new browser
Window, now if i make my form to be an ajaxForm doing a
model.close(ajaxtarget) wouldnt work, since the control is a seperate window
now...i hope i am making sense...

So basically here is what i will be doing if i make the form submission
ajax-based ...

            protected void onSubmit(AjaxRequestTarget arg)
            {
              urlToTheExternalPage = "http://";;
              getRequestCycle().setRequestTarget(
                    new RedirectRequestTarget(urlToTheExternalPage ));
              modalWindow.close(arg));
            }



Nino.Martinez wrote:
> 
> Just provide the modal window to the form and call modalwindow.close in 
> the form..?
> 
> mfs wrote:
>> Guys,
>>
>> I am posting this question yet again, hoping to get some feedback...
>>
>> The problem is regarding modal windows, as to how close it, when a form
>> (within it) is submitted in a new window. Any suggestions
>>
>>
>> Thanks in advance 
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Modal-Window-question-tp17989203p17997987.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to