Message Boards
js fragment not working?
Abhishek Jain, modified 7 Years ago.
js fragment not working?
Regular Member Posts: 226 Join Date: 8/20/16 Recent Posts
I have tried to override blogs.js file of com.liferay.blogs.web. For overriding, I applied the trick of jsp hook in the js hook also. Code for bnd.bnd file is as follows:-
The blogs.js file path is -"[fragment-name]\src\main\resources\META-INF\resources\blogs.js". Status is resolved but the fragment is not working.
I have put an alert message in the blogs.js ..that message should be shown when adding new blog. But that message is not displayed i.e the fragment is not working. Where might I go wrong ? Please help..any help would be appreciated.
Thanks.
Bundle-SymbolicName: js.hook2
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.blogs.web;bundle-version="1.0.5"
-sources: true
The blogs.js file path is -"[fragment-name]\src\main\resources\META-INF\resources\blogs.js". Status is resolved but the fragment is not working.
I have put an alert message in the blogs.js ..that message should be shown when adding new blog. But that message is not displayed i.e the fragment is not working. Where might I go wrong ? Please help..any help would be appreciated.
Thanks.
Marco Endres, modified 7 Years ago.
RE: js fragment not working?
Regular Member Posts: 112 Join Date: 8/22/12 Recent Posts
Hey Jain
On which Liferay GA version and which OS do you work?
Marco Endres
On which Liferay GA version and which OS do you work?
Marco Endres
Abhishek Jain, modified 7 Years ago.
RE: js fragment not working?
Regular Member Posts: 226 Join Date: 8/20/16 Recent Posts
Working on Liferay 7 CE GA1.. and in this version I successfully ran several jsp hooks but in case of js hooks, not working..