-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-3.0.0-ga1, liferay-faces-3.1.0-ga1
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
If portlet is unable to add resource to <head> section (as in case of portlets embedded in Liferay theme) then JavaScript and CSS resources added to portlet body without check that these resources are present in <head>. This can cause serious problems. For example in case of PrimeFaces this causes duplication on inclusion jQuery library and throws away all custom jQuery plugins added to head section.
As a workaround i have removed <h:head> from my embedded portlets (happily in my case it's possible).