Re: open Modal Window without AjaxRequestTarget

2010-07-02 Thread Michał Letyński
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

Re: open Modal Window without AjaxRequestTarget

2010-07-01 Thread Richard Nichols
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

RE: open Modal Window without AjaxRequestTarget

2010-07-01 Thread Stefan Lindner
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

Re: open Modal Window without AjaxRequestTarget

2010-07-01 Thread Pierre Goupil
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

Re: open Modal Window without AjaxRequestTarget

2010-07-01 Thread Pierre Goupil
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!

open Modal Window without AjaxRequestTarget

2010-06-30 Thread Pierre Goupil
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,