You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Chuck Kring (JIRA)" <ji...@apache.org> on 2010/05/04 01:10:56 UTC

[jira] Created: (TAP5-1125) Upload component should be enhanced to work with Ajax

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: Bug
          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.


[jira] Commented: (TAP5-1125) Upload component should be enhanced to work with Ajax

Posted by "Massimo Lusetti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863565#action_12863565 ] 

Massimo Lusetti commented on TAP5-1125:
---------------------------------------

As I said on the ML ... please don't go the Flash way

> 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: Bug
>          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.


[jira] Updated: (TAP5-1125) Upload component should be enhanced to work with Ajax

Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Zeigler updated TAP5-1125:
---------------------------------

    Issue Type: Improvement  (was: Bug)

> 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.


[jira] Commented: (TAP5-1125) Upload component should be enhanced to work with Ajax

Posted by "Massimo Lusetti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863565#action_12863565 ] 

Massimo Lusetti commented on TAP5-1125:
---------------------------------------

As I said on the ML ... please don't go the Flash way

> 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: Bug
>          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.


[jira] Updated: (TAP5-1125) Upload component should be enhanced to work with Ajax

Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Zeigler updated TAP5-1125:
---------------------------------

    Issue Type: Improvement  (was: Bug)

> 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.