Re: Configure requirejs

Cezary Biernacki <[email protected]> Wed, 7 Aug 2019 15:22:13 +0200
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAE26fNgvYVmvrkeN+wS3TVBatY4aWXDk9K7KaV58NBk9VxHvwA@mail.gmail.com>
--000000000000f09158058f86d4dd
Content-Type: text/plain; charset="UTF-8"

Hi,
in your Layout component you need to add something like:

    private static final ModuleConfigurationCallback CONFIGURE_WAIT_SECONDS
= (config) -> config.put("waitSeconds", 120);
    @AfterRender
    public void configureRequireJS() {

javaScriptSupport.addModuleConfigurationCallback(CONFIGURE_WAIT_SECONDS);
    }

Best regards,
Cezary


On Wed, Aug 7, 2019 at 3:05 PM Nathan Quirynen <[email protected]>
wrote:

> Hey,
>
> How can I configure requirejs in Tapestry? I want to set the
> "waitSeconds" option for the whole application. How can I achieve this?
>
> Thanks,
>
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

--000000000000f09158058f86d4dd--