3 Replies Latest reply on Aug 26, 2009 12:51 PM by Ronald van Kuijk

    File upload and JBPM:form

    Tej jbpm Novice

      Hi all

      I am trying to implement a File upload button in my task form using JSF. I am able to see the button and when i click on upload the enctype is not set properly. I think the problem is i am setting the enctype in h:form and jbpm:dataform is not able to understand or parse that..is there any obvious issues with this..any other alternative fix to this issue?

       <jbpm:dataform>
       <jbpm:datacell>
       <h:form id="uploadForm" enctype="multipart/form-data">
       <h:panelGrid columns="3">
       <f:facet name="header">
       <h:outputLabel value="Select file" />
       </f:facet>
       <t:inputFileUpload id="file" value="#{FileUploadBean.uploadedFile}" storage="file" immediate="true" required="true" />
       <h:message for="file" style="color: red;" />
       <h:panelGroup />
       <h:commandButton value="Upload" action="#{FileUploadBean.submit}" />
       <h:message for="uploadForm" infoStyle="color: green;" errorStyle="color: red;" />
       </h:panelGrid>
       </h:form>
       <h:outputLink value="file/#{FileUploadBean.fileName}" rendered="#{FileUploadBean.fileName != null}">
       Download back
       </h:outputLink>
       </jbpm:datacell> </jbpm:dataform>