-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-2.1.1-ga2, liferay-faces-3.0.1-legacy-ga2, liferay-faces-3.0.1-ga2, liferay-faces-3.1.1-ga2
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
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.