Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1206

t:inputFileUpload doesn't work with s:pprPanelGroup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.6
    • None
    • File Upload
    • None

    Description

      Seems like it is impossible to do ajax upload using t:inputFileUpload and s:pprPanelGroup.
      The uploaded file on the server is null.

      Example:
      -------------
      <%@ page contentType="text/html;charset=windows-1255" %>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
      <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s" %>
      <html>
      <head><title>Simple jsp page</title></head>
      <body>

      <f:view>
      <h:form id="frmUpload" enctype="multipart/form-data">
      <s:pprPanelGroup id="xxxx" partialTriggerPattern="frmUpload.*" inlineLoadingMessage="Loading...">
      <t:inputFileUpload size="18" id="video" value="#

      {xxx.myFile}

      " storage="file" required="true"/>
      <h:message for="video" errorClass="error" styleClass="info"/>
      <h:commandButton id="commandUpload" value="Upload " styleClass="inputsubmit"
      action="#

      {xxx.saveAction}

      "/>
      </s:pprPanelGroup>
      </h:form>
      </f:view>
      </body>
      </html>

      "myFile" member in "xxx" bean is always null. When s:pprPanelGroup is removed myFile has value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bashan Guy Bashan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: