Re: ModalWindow and Ajax?

2008-04-04 Thread Nino Saturnino Martinez Vazquez Wael
:) After instantiating your modal window. You can do something like this: AjaxLink popupLink = new AjaxLink("manageWeightPop") { @Override public void onClick(AjaxRequestTarget target) { * target.appendJavascript("Wicket.Window.unloadConfirmation = f

Re: ModalWindow and Ajax?

2008-04-03 Thread Per Newgro
Hello Nino Saturnino Martinez Vazquez Wael: could you please provide a small example on this issue / solution. I think about a similiar way of doin things and i don't want to ask the same question as you in a month again :-) Thanks Per -

Re: ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
Ok.. Thanks, thought it was some setup thingy. And works fine now. regards Nino Ryan Gravener wrote: You can set it as soon as the Wicket js object has been created. You need to be using wicket 1.3.x for this to work and yes, you will need to have it set before the onchange. On Thu, Apr 3

Re: ModalWindow and Ajax?

2008-04-03 Thread Ryan Gravener
You can set it as soon as the Wicket js object has been created. You need to be using wicket 1.3.x for this to work and yes, you will need to have it set before the onchange. On Thu, Apr 3, 2008 at 11:00 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > this did not do the tr

Re: ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
this did not do the trick in my onchange: target.appendJavascript("Wicket.Window.unloadConfirmation = false;"); should it be prepended or when should it be append before the onchange event in my dropdown? As a kind of setup, I guess? Ryan Gravener wrote: Yes, append this java

Re: ModalWindow and Ajax?

2008-04-03 Thread Ryan Gravener
Yes, append this javascript in your ajax call: Wicket.Window.unloadConfirmation = false; On Thu, Apr 3, 2008 at 10:33 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > I have a modalwindow which contains a dropdown. I've attached an > ajaxbehavior to the dropdown but w

ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
Hi I have a modalwindow which contains a dropdown. I've attached an ajaxbehavior to the dropdown but when it fires I get a confirmation box "are you sure you want to navigate away from this page"... Is it supposed to work this way? -- -Wicket for love Nino Martinez Wael Java Specialist @ Ja