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

Add CSS/JavaScript resources to the <head>...</head> section of the Liferay Portal page via com.liferay.taglib.util.HtmlTopTag

Details

    Description

      The current design of com.liferay.faces.bridge.renderkit.html_basic.HeadResponseWriterLiferayImpl directly manipulates the com.liferay.portal.util.WebKeys.PAGE_TOP request attribute. This worked OK for Liferay Portal 5.2/6.0/6.1 but stopped working for Liferay Portal 6.2.

      From a portlet developer's perspective, the appropriate API for doing this would be to use the liferay-util:page-top JSP tag. With the advent of FACES-1539, we are now able to invoke JSP tag classes directly without depending on JavaServer Pages (JSP) technology. This is particularly useful when using the Facelet View Declaration Langage. So in order to use the appropriate API, the HeadResponseWriterLiferayImpl needs to be refactored so that it invokes com.liferay.taglib.util.HtmlTopTag] directly rather than setting the request attribute.

      Attachments

        Activity

          People

            neil.griffin Neil Griffin
            neil.griffin Neil Griffin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                liferay-faces-2.1.2-ga3
                liferay-faces-3.0.2-legacy-ga3
                liferay-faces-3.0.2-ga3
                liferay-faces-3.1.2-ga3