Re: Preventing the ModalWindow from being rendered as iframe

2020-07-07 Thread Lukas Fülling

Oh, so it's only decided by the content being either a page or a panel?

Imo that should be appended to the documentation; the section that 
Martin Terra cited seemed to me like it was only concerning the title.


Title is specified using setTitle(String). If the content is a page 
(iframe), the title can remain unset, in that case title from the page 
inside window will be shown.


I'll try using a panel, thanks for your help.

On 07.07.2020 13:08, Martin Grigorov wrote:

Hi,

On Tue, Jul 7, 2020 at 1:26 PM Lukas Fülling 


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




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Preventing the ModalWindow from being rendered as iframe

2020-07-07 Thread Martin Grigorov
Hi,

On Tue, Jul 7, 2020 at 1:26 PM Lukas Fülling 
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
>
>


Re: Preventing the ModalWindow from being rendered as iframe

2020-07-07 Thread Martin Terra
Hi!

Javadoc says ... *If the content is a page (iframe)* ..

Can you show your code, if you are using a panel or a page as its content?

**
Martin

ti 7. heinäk. 2020 klo 13.26 Lukas Fülling (lerk@gammel.cloud.invalid)
kirjoitti:

> 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.
>
> Thanks for you help
>
> Lukas
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Preventing the ModalWindow from being rendered as iframe

2020-07-07 Thread Lukas Fülling

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.


Thanks for you help

Lukas

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org