[
http://issues.apache.org/jira/browse/TOMAHAWK-168?page=comments#action_12435313
]
Serg Maslyukov (http://webmill.askmore.info) commented on TOMAHAWK-168:
-----------------------------------------------------------------------
This is very simple sollution and not work in most situation because, if you
use non declarative action, ypu processAction not invoked.
This code not work with this solution:
<h:form id="foo" enctype="multipart/form-data">
<h:panelGrid columns="1">
<h:outputText value="#{msg.xml_format_warning}"
styleClass="standard_bold"/>
<t:inputFileUpload id="fileupload"
value="#{priceUploadForm.upFile}"
storage="file"
styleClass="fileUploadInput"
required="true"/>
<h:commandButton action="#{priceUploadForm.upload}"
value="#{msg.upload_action}"/>
<h:panelGroup rendered="#{priceUploadForm.uploaded}">
<h:outputText value="#{msg.success_upload}"
rendered="#{priceUploadForm.success}"/>
<h:outputText value="#{msg.error_upload}" rendered="#{not
priceUploadForm.success}"/>
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="1" rendered="#{fileUploadForm.uploaded}">
<h:outputText value="filename: #{fileUploadForm.name}"/>
</h:panelGrid>
</h:form>
> Tomahawk not support PortletContext and form with 'multipart/form-data'
> -----------------------------------------------------------------------
>
> Key: TOMAHAWK-168
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-168
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Portlet_Support, File Upload
> Affects Versions: 1.1.1
> Reporter: Serg Maslyukov (http://webmill.askmore.info)
>
> Current imlementation (v1.1.1) of tomahawk not support portlet context and
> form with 'multipart/form-data' encoding type.
> this bug affected all actions too. No actions are invoked.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira