Re: open Modal Window without AjaxRequestTarget
Hi. You must make content visible manually since its done in show(ajaxtarget) method. So override makeVisible() method from modal window or just set getContent().setVisible(true) in onBeforeRender. W dniu 2010-07-01 20:59, Pierre Goupil pisze: Good evening, I tried it but nothing shows. My Firebug gives this error: either src or element must be set I did use setContent()! Can anyone help, please? Regards, Pierre On Thu, Jul 1, 2010 at 9:41 AM, Pierre Goupilgoupilpie...@gmail.comwrote: I'll give that a try, men. Thank you! Regards, Pierre On Thu, Jul 1, 2010 at 8:21 AM, Stefan Lindnerlind...@visionet.dewrote: See ModalWindow.getWindowOpenJavascript() and use it like this ModalWindow myModalWindow = new ModalWIndow.. someComponent.add(new SimpleAttributeModifier(onclick, myModalWindow.getWindowOpenJavascript())); I didn't try I but I think it should work like this. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: open Modal Window without AjaxRequestTarget
The dialog component in visural-wicket has an onclick behavior which will open or close the dialog without an Ajax callback. http://visural-wicket-examples.appspot.com/app/dialog On 1 July 2010 08:03, Pierre Goupil goupilpie...@gmail.com wrote: Hello, I'm well aware of https://issues.apache.org/jira/browse/WICKET-12 but I can't figure out how to open a modal window without an AjaxRequestTarget. My guess is that it's related to getWindowOpenJavascript() but is there any example available, please? I use Wicket 1.4.9. Thanks in advance, Pierre Goupil -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide. -- Richard Nichols http://www.richardnichols.net/ :: http://onmydoorstep.com.au/
RE: open Modal Window without AjaxRequestTarget
See ModalWindow.getWindowOpenJavascript() and use it like this ModalWindow myModalWindow = new ModalWIndow.. someComponent.add(new SimpleAttributeModifier(onclick, myModalWindow.getWindowOpenJavascript())); I didn't try I but I think it should work like this. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: open Modal Window without AjaxRequestTarget
I'll give that a try, men. Thank you! Regards, Pierre On Thu, Jul 1, 2010 at 8:21 AM, Stefan Lindner lind...@visionet.de wrote: See ModalWindow.getWindowOpenJavascript() and use it like this ModalWindow myModalWindow = new ModalWIndow.. someComponent.add(new SimpleAttributeModifier(onclick, myModalWindow.getWindowOpenJavascript())); I didn't try I but I think it should work like this. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide.
Re: open Modal Window without AjaxRequestTarget
Good evening, I tried it but nothing shows. My Firebug gives this error: either src or element must be set I did use setContent()! Can anyone help, please? Regards, Pierre On Thu, Jul 1, 2010 at 9:41 AM, Pierre Goupil goupilpie...@gmail.comwrote: I'll give that a try, men. Thank you! Regards, Pierre On Thu, Jul 1, 2010 at 8:21 AM, Stefan Lindner lind...@visionet.dewrote: See ModalWindow.getWindowOpenJavascript() and use it like this ModalWindow myModalWindow = new ModalWIndow.. someComponent.add(new SimpleAttributeModifier(onclick, myModalWindow.getWindowOpenJavascript())); I didn't try I but I think it should work like this. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide. -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide.
open Modal Window without AjaxRequestTarget
Hello, I'm well aware of https://issues.apache.org/jira/browse/WICKET-12 but I can't figure out how to open a modal window without an AjaxRequestTarget. My guess is that it's related to getWindowOpenJavascript() but is there any example available, please? I use Wicket 1.4.9. Thanks in advance, Pierre Goupil -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide.