Fórum
js fragment not working?
Abhishek Jain, modificado 7 Anos atrás.
js fragment not working?
Regular Member Postagens: 226 Data de Entrada: 20/08/16 Postagens Recentes
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, modificado 7 Anos atrás.
RE: js fragment not working?
Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
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, modificado 7 Anos atrás.
RE: js fragment not working?
Regular Member Postagens: 226 Data de Entrada: 20/08/16 Postagens Recentes
Working on Liferay 7 CE GA1.. and in this version I successfully ran several jsp hooks but in case of js hooks, not working..