Hi,

Do you use AjaxLazyLoadPanel for the loading image + result panel ?
You can move your #renderHead() logic to the result panel's renderHead().

On Wed, May 30, 2018 at 3:05 PM, Zbynek Vavros <zbynekvav...@gmail.com>
wrote:

> Hi,
>
> I got a wizard and one of its steps display loading image while
> processing long running task. After this task JavaScript is being called.
>
> I've put the code into render renderHead() method of the step itself:
>
> @Override
> public void renderHead(IHeaderResponse response) {
>     // process task
>     String taskResult = ...
>     // call JavaScript with result
>     response.render(OnDomReadyHeaderItem.forScript("jsFunction(" +
> taskResult + ")"));
> }
>
> When I click the NEXT button, this long running task is executed before
> the step with loading image is rendered.
> I guess I need to move the code somewhere else than renderHead() but where?
>
> Thanks,
> Zbynek
>

Reply via email to