Hi!
> Yeah, but then I would create new panel for every single click on that
> link. I know it's a bit edge-case, but still... So I can't achieve this
> without some own initialization logic?
You don't need to create new panel, just use lazy initialization.
modalWidnow.setContent(getContentPane
Yeah, but then I would create new panel for every single click on that
link. I know it's a bit edge-case, but still... So I can't achieve this
without some own initialization logic?
Thanks for your replies.
Regards,
Peter
2010-10-30 16:48 keltezéssel, Alexander Morozov írta:
>
> You can set con
You can set content for modal within onClick method.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/On-demand-component-initialization-tp3020334p3020343.html
Sent from the Users forum mailing list archive at Nabble.com
> then when I construct the page containing this modalwindow, I also will
> construct the modalwindow content, but the user can just decide to not
> to click on this link, so skip the modal, and then I have an unnecessary
> constructed panel.
Yeah.. you can construct panel in onClick before .show(
Hi,
I'm trying to create a ModalWindow, something similar to this example:
http://wicketstuff.org/wicket14/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.modal.ModalWindowPage
If I create the modalwindow like this:
final ModalWindow modal = new ModalWindow("modal");
moda