Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to Resolve "DevExtreme bundle already included"?
Hi,
I included below source in my Jsp.
<link rel="stylesheet" type="text/css"
href="https://cdn3.devexpress.com/jslib/18.2.7/css/dx.common.css" />
<link rel="dx-theme" data-theme="generic.light"
href="https://cdn3.devexpress.com/jslib/18.2.7/css/dx.light.css" />
<script src="https://cdn3.devexpress.com/jslib/18.2.7/js/dx.all.js"></script>
While i am loading page below error showing in console.
Uncaught Error: E0024 - DevExtreme bundle already included.
PFA
Thank You
I included below source in my Jsp.
<link rel="stylesheet" type="text/css"
href="https://cdn3.devexpress.com/jslib/18.2.7/css/dx.common.css" />
<link rel="dx-theme" data-theme="generic.light"
href="https://cdn3.devexpress.com/jslib/18.2.7/css/dx.light.css" />
<script src="https://cdn3.devexpress.com/jslib/18.2.7/js/dx.all.js"></script>
While i am loading page below error showing in console.
Uncaught Error: E0024 - DevExtreme bundle already included.
PFA
Thank You
Attachments:
We never ever add CSS and/or JS resources this way because there is no way for the portal to aggregate them when multiple portlets want to use the same files.
Use the @Component propery keys header-portlet-css, header-portlet-js, footer-portlet-css, footer-portlet-js, etc to properly inject your portlet resources.
Use the @Component propery keys header-portlet-css, header-portlet-js, footer-portlet-css, footer-portlet-js, etc to properly inject your portlet resources.
Hi David,
Thanks for your support.
@Component(
immediate = true,
property = {
"com.liferay.portlet.header-portlet-js=/js/dx.all.js",
"com.liferay.portlet.header-portlet-css=/css/dx.common.css",
"com.liferay.portlet.header-portlet-css=/css/dx.light.css",
},
service = Portlet.class
)
Created js and css folders in path /src/main/resources/META-INF/resources/js/**** and ****/css/****
But file is not loading
Thanks for your support.
@Component(
immediate = true,
property = {
"com.liferay.portlet.header-portlet-js=/js/dx.all.js",
"com.liferay.portlet.header-portlet-css=/css/dx.common.css",
"com.liferay.portlet.header-portlet-css=/css/dx.light.css",
},
service = Portlet.class
)
Created js and css folders in path /src/main/resources/META-INF/resources/js/**** and ****/css/****
But file is not loading
My bad, I shouldn't have shortened the header property key. It actually should be:
"com.liferay.portlet.header-portlet-javascript=/js/main.js"
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™