You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2011/01/26 21:16:45 UTC
[jira] Closed: (TAP5-1125) Upload component should be enhanced to
work with Ajax
[ https://issues.apache.org/jira/browse/TAP5-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk closed TAP5-1125.
------------------------------
Resolution: Duplicate
> Upload component should be enhanced to work with Ajax
> -----------------------------------------------------
>
> Key: TAP5-1125
> URL: https://issues.apache.org/jira/browse/TAP5-1125
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-upload
> Affects Versions: 5.1.0.5
> Reporter: Chuck Kring
> Priority: Minor
>
> An upload component in a form contained by a zone doesn't work.
> Howard said:
> We don't yet have Forms and Zones working; XMLHttpRequest doesn't
> automatically handle the necessary MIME multipart/form-data content
> type. It possible that the Upload need to be handled specially,
> perhaps with a Flash movie.
> Thiago H. de Paula Figueiredo said:
> Independently of Tapestry, AJAX doesn't support file uploads. When you see something that seems to be a file submission through AJAX, it's implemented by some Flash control ou using an iframe. Of course, as Howard said, the Upload component could handle this options itself.
> In the example below, remove the t:zone='theform' parameter from the form and the upload will work.
> <?xml version="1.0" encoding="utf-8"?>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <body>
> <div class="dialog_outer" style="width:700px">
> <t:zone t:id="theForm"/>
> <t:form t:zone="theForm">
> <table><tbody>
> <tr>
> <td>Upload file</td>
> <td><input t:type= "upload" t:id="uploaded"/></td>
> </tr>
> </tbody></table>
> <t:submit t:id="apply" value="Apply"/>
> </t:form>
> </div>
> </body></html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.