PUBLIC - Liferay Faces
  1. PUBLIC - Liferay Faces
  2. FACES-1174

Refactor icefaces3-documents-portlet to use ace:fileEntry

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-ga1, 3.1.0-ga1
    • Fix Version/s: 3.0.0-ga1, 3.1.0-ga1
    • Component/s: Demos
    • Labels:
      None
    • Similar Issues:
      Show 5 results 

      Description

      Currently the icefaces3-documents-portlet uses bridge:inputFile for file upload with a full postback. When you try and upload and click on Submit or Cancel, you get the following stacktrace:

      19:55:22,593 ERROR [jsp:154] org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
      at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:391)
      at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:235)
      at org.icefaces.impl.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:396)
      at org.icefaces.impl.context.DOMResponseWriter.startElement(DOMResponseWriter.java:259)
      at org.icefaces.impl.event.BridgeSetup$1.encode(BridgeSetup.java:251)
      at org.icefaces.impl.event.UIOutputWriter.encodeBegin(UIOutputWriter.java:27)
      at org.icefaces.impl.renderkit.DOMRenderKit$FormBoost.encodeEnd(DOMRenderKit.java:200)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1764)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
      at com.liferay.faces.bridge.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:91)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:251)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:83)
      at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:85)

      Rather than try and fix this, better to upgrade to ace:fileEntry for ajax-based file upload.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Neil Griffin
              Reporter:
              Neil Griffin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Structure Helper Panel