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

CustomerResourceHandler.handleResourceRequest(facesContext) method does not pass responsibility to the resource-handler delegation-chain

    Details

      Description

      Original Description by Jan Eerdekens:

      When you take the default Primefaces 4 demo portlet, add the ResourceHandler from the JSF2 Export PDF Portlet to it and add a p:commandLink to the applicant.xhtml page the link will not work (while a commandButton still will). It will also print the following in the browser console: Uncaught ReferenceError: PrimeFaces is not defined. If you put the ResourceHandler in comments in faces-config.xml and redeploy, the link will work.

      Updated Description:

      This is a bug in the CustomerResourceHandler.handleResourceRequest(facesContext) method such that it does not have an "else" condition that passes along responsibility to the resource-handler delegation-chain.. In order to provide a more clear example of custom ResourceHandler design, it is also necessary to add comments that will explain things more clearly.

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            jan.eerdekens@gmail.com Jan Eerdekens (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-3.0.5-legacy-ga6
                liferay-faces-3.0.5-ga6
                liferay-faces-3.1.5-ga6
                liferay-faces-3.2.5-ga6
                liferay-faces-4.2.5-ga6