Question

The project is based on struts-jquery-3.6.1 I want to write a widget in the jquery so I change the head tag as below, to import the jQuery UI tags:

<sj:head debug="true"           
        jqueryui="true"
        defaultLoadingText="Please wait ..." />

It makes an html as

<script type="text/javascript" src="/struts/js/base/jquery.ui.core.js?s2j=3.6.1"></script>

The jquery.ui.core.js is the core! It does not include jquery.ui.widget.js. Do you know what is the best way to solve it? I do not want to manually add script in my code

Was it helpful?

Solution

Try to set loadAtOnce to true as well.

loadAtOnce  -   do not use the on demand load for jquery ui resources
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top