Re: Lazy modal window

2019-03-11 Thread Zbynek Vavros
Aha I see, the solution is to set the content panel when the ajax event occurs... Thanks! On Mon, Mar 11, 2019 at 10:10 PM Sven Meier wrote: > Hi, > > publish you quickstart on a public repository (e.g. Github) or store it > on a file hoster so we can take a look. > > But it's not hard

Re: Lazy modal window

2019-03-11 Thread Sven Meier
Hi, publish you quickstart on a public repository (e.g. Github) or store it on a file hoster so we can take a look. But it's not hard actually - you can delay setting the content of your dialog until it is shown:     @Override     public void onClick(AjaxRequestTarget target)     {   

Re: Lazy modal window

2019-03-11 Thread Zbynek Vavros
Well for me the code in content's panel is executed when the page containing the link/button is rendered. Doesn't matter if I click it or not. Maybe I do smth terribly wrong... I could provide quick-start I'm just not sure how it works here (do I attach it to email?). On Mon, Mar 11, 2019 at

Re: Lazy modal window

2019-03-11 Thread Martin Grigorov
On Mon, Mar 11, 2019 at 2:07 PM Zbynek Vavros wrote: > Let's say modal windows does some quite expensive query and user never > displays this window. > In this case the query will be done even when not needed. > > Is there any other way to make sure the content isn't loaded until needed? > The

Re: Lazy modal window

2019-03-11 Thread sven
Wicket doesn't force you to create the content upfront. Show us some code, so we can see why you got this wrong impression. Have fun Sven > > On 11.03.2019 at 13:07,wrote: > > > Let's say modal windows does some quite expensive query and user never >

Re: Lazy modal window

2019-03-11 Thread Zbynek Vavros
Let's say modal windows does some quite expensive query and user never displays this window. In this case the query will be done even when not needed. Is there any other way to make sure the content isn't loaded until needed? On Mon, Mar 11, 2019 at 1:05 PM Martin Grigorov wrote: > Hi, > >

Re: Lazy modal window

2019-03-11 Thread Martin Grigorov
Hi, On Mon, Mar 11, 2019 at 11:51 AM Zbynek Vavros wrote: > Hi, > > I see content of modal windows being created even before the window was > displayed. > Is proper way to make this lazy by using AjaxLazyLoadPanel in > ModalWindow.setContent ? > This is a matter of requirements/taste. Your

Re: Wicket-jquery-ui autocomplete running slow

2019-03-11 Thread Martin Grigorov
On Mon, Mar 11, 2019 at 1:57 PM Entropy wrote: > The problem is our project is a government one that doesn't let us use > Maven > (we've tilted at that windmill multiple times). So quick starts aren't > that > quick for us. > We do not ask you to use your project to create the mini project.

Re: Wicket-jquery-ui autocomplete running slow

2019-03-11 Thread Entropy
The problem is our project is a government one that doesn't let us use Maven (we've tilted at that windmill multiple times). So quick starts aren't that quick for us. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Lazy modal window

2019-03-11 Thread Zbynek Vavros
Hi, I see content of modal windows being created even before the window was displayed. Is proper way to make this lazy by using AjaxLazyLoadPanel in ModalWindow.setContent ? Thanks