user3452432
user3452432

Reputation: 41

Liferay 7 MVC Portlet - Where to locate javascript when using the new lr module approach

does someone know a good example which shows where to locate javascript and css in a MVC portlet in LR7 and load it by annotation "com.liferay.portlet.footer-portal-javascript"?

Thanks for a short hin.

Best regards

Udo

Upvotes: 0

Views: 1013

Answers (1)

Milen Dyankov
Milen Dyankov

Reputation: 3052

Best example is Liferay's source code. See for example ServerAdminPortlet which uses com.liferay.portlet.footer-portlet-javascript pointing to /js/main.js which you can find in <PORTLET's_SRC_FOLDER>/resources/META-INF/resources/

Upvotes: 1

Related Questions