[jboss-user] [jBPM Users] - File upload and JBPM:form

TejJBPM do-not-reply at jboss.com
Wed Aug 26 11:28:08 EDT 2009

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>

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251844#4251844

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251844

More information about the jboss-user mailing list