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

Add support for PrimeFaces Mobile RenderKit

    Details

      Description

      {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}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  bridge-impl-3.1.0
                  bridge-impl-4.1.0