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

alloy:inputFile and bridge:inputFile fail to render on all branches except master due to incorrect delegate component type

    Details

      Description

      Steps to Reproduce:

      1. Deploy the jsf2-portlet and liferayfaces3-portlet from the 3.2.x branch

      2. Attempt to visit the JSF2 and LF3 pages

      If the bug still exists, then the following stacktrace will appear in the console log:

      java.lang.NullPointerException
      	at com.liferay.faces.util.render.DelegatingRendererBase.encodeBegin(DelegatingRendererBase.java:77)
      	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822)
      	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
      	at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185)
      	at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129)
      	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447)
      	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      	at com.liferay.faces.bridge.application.internal.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:52)
      

      The problem stems from the fact that the renderer for alloy:inputFile and the renderer for bridge:inputFile are not specifying HtmlInputText.COMPONENT_TYPE for the delegate renderer component type.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.5-ga6
                liferay-faces-2.2.5-ga6
                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