In the application.init() add the following line :

getResourceBundles().add(YourApplication.class, new 
JavaScriptResourceReference(BrowserInfoForm.class, "wicket-browser-info.js"));

YourApplication.class is the {@linkplain ResourceReference#getScope() scope} of 
your bundle

François




> Le 24 avr. 2019 à 15:37, Olivier Dutrieux <olivier.dutri...@pasteur.fr> a 
> écrit :
> 
> Hello,
> 
> I have define on application.init() the setHeaderResponseDecorator (to
> deferred all javascript to the end of the page) and set
> setGatherExtendedBrowserInfo to true to retrieve some informations from
> browser.
> 
> The problem is when the BrowserInfoPage is render no js is add to the page
> because the BrowserInfoPage  doesn't have the component
> HeaderResponseContainer to deferred the js.
> 
> How can I solve this problem ?
> 
> Duto
> 
> -----
> Duto
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> ---------------------------------------------------------------------
> 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

Reply via email to