Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1420

JSF portlets embedded in Liferay theme causes duplicated (or repeating) inclusion of JavaScript and CSS resources

    Details

      Description

      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).

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            iastafyev Ivan A. Astafyev (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-3.0.1-legacy-ga2
                liferay-faces-3.0.1-ga2
                liferay-faces-3.1.1-ga2
                liferay-faces-3.2.4-ga5