-
Type:
New Feature
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: bridge-impl-3.1.0, bridge-impl-4.1.0
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
{markdown}
Currently, the [Liferay Faces Bridge only supports the HTML_BASIC RenderKit](https://github.com/liferay/liferay-faces-bridge-impl/blob/master/bridge-impl/src/main/java/com/liferay/faces/bridge/renderkit/html_basic/internal/RenderKitFactoryBridgeImpl.java#L77). Since [PrimeFaces Mobile uses the PRIMEFACES_MOBILE RenderKit](https://github.com/primefaces/primefaces/blob/6_0/src/main/resources-maven-jsf/standard-faces-config.xml#L246), the Liferay Faces Bridge does not support it. This causes issues when using the PRIMEFACES_MOBILE RenderKit such as [NullPointerExceptions due to the Bridge's HeadRenderer not being run](https://issues.liferay.com/browse/FACES-2910) and [multiple <head> and <body> tags appearing on the page](https://web.liferay.com/community/forums/-/message_boards/view_message/78310956). This task involves adding support for the PRIMEFACES_MOBILE RenderKit by wrapping it with the Bridge's RenderKit and modifying `HeadRendererPrimeFacesImpl` to utilize [PrimeFaces Mobile HeadRenderer](https://github.com/primefaces/primefaces/blob/6_0/src/main/resources-maven-jsf/standard-faces-config.xml#L252) when the PRIMEFACES_MOBILE RenderKit is in use.{markdown}
Currently, the [Liferay Faces Bridge only supports the HTML_BASIC RenderKit](https://github.com/liferay/liferay-faces-bridge-impl/blob/master/bridge-impl/src/main/java/com/liferay/faces/bridge/renderkit/html_basic/internal/RenderKitFactoryBridgeImpl.java#L77). Since [PrimeFaces Mobile uses the PRIMEFACES_MOBILE RenderKit](https://github.com/primefaces/primefaces/blob/6_0/src/main/resources-maven-jsf/standard-faces-config.xml#L246), the Liferay Faces Bridge does not support it. This causes issues when using the PRIMEFACES_MOBILE RenderKit such as [NullPointerExceptions due to the Bridge's HeadRenderer not being run](https://issues.liferay.com/browse/FACES-2910) and [multiple <head> and <body> tags appearing on the page](https://web.liferay.com/community/forums/-/message_boards/view_message/78310956). This task involves adding support for the PRIMEFACES_MOBILE RenderKit by wrapping it with the Bridge's RenderKit and modifying `HeadRendererPrimeFacesImpl` to utilize [PrimeFaces Mobile HeadRenderer](https://github.com/primefaces/primefaces/blob/6_0/src/main/resources-maven-jsf/standard-faces-config.xml#L252) when the PRIMEFACES_MOBILE RenderKit is in use.{markdown}
- fixes
-
FACES-2910 NullPointerException thrown by BodyRendererBridgeImpl.java when the PrimeFaces mobile renderkit is specified in WEB-INF/faces-config.xml
-
- Closed
-
-
FACES-2920 inline <alloy:outputScript>s and <alloy:outputStylesheet>s cannot be rendered in the <head> section in Liferay Portal
-
- Closed
-