Hi, On Tue, Jul 7, 2020 at 1:26 PM Lukas Fülling <lerk@gammel.cloud.invalid> wrote:
> Hi, > > I'm currently trying to get Javascript callbacks from/to a Wicket > ModalWindow to work. > Currently, the WebPage the ModalWindow consis of is being redered as an > iframe. > > The Wicket documentation states the following: > > > Modal window is a draggable window (with either div or iframe content) > > that prevent user from interacting the rest of page (using a mask) > > until the window is closed. > ( > https://ci.apache.org/projects/wicket/apidocs/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html > ) > > Unfortunately I can't find any info on how to make the ModalWindow being > rendered as a div instead of an iframe and I wondered if someone on this > list knows how to do it. > You should use ModelWindow#setContent(new SomePanel()) instead of passing it a Page with ModalWindow#setPageCreator(). > > Thanks for you help > > Lukas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >