>From the front end, multi file uploads must be done using JS to create
additional file input elements on the fly. Uploading them "via AJAX" is
all about perception, as you can't actually do it since the JS would
need to stream the bytes of the selected files (which is of course not
allowed). The pure HTML/JS way to implement this is by having an iframe
that actually points to another page with the form. Using JS, you can
submit that form and emit notifications to the containing page when the
page in the frame reloads. Throw in a little CSS and you end up with
what looks and feels like an AJAX file upload (this is exactly how
gmail's smooth upload works).

The tricky part unfortunately is dealing with T5. I don't know how you
can create new components on the fly. It's not as easy as just creating
a new element in pure JS, since the containing T5 form will need to know
about that component and how to bind a value to it. Input on this
subject is sorely needed.

chris

Lance Java wrote:
> The html file object only supports 1 file at a time, it's also locked down
> by browser security so you can't set the value via javascript.
> To upload multiple files you can either use multiple file objects with some
> user friendly javascript or use an applet or a flash component.
>
> I've seen some open source multi-upload applets floating about... have never
> used one though.
> Facebook for example uses an applet to upload multiple photos
>
> 2008/8/28 Massimo Lusetti <[EMAIL PROTECTED]>
>
>   
>> On Thu, Aug 28, 2008 at 5:08 PM, ProAdmin Dariusz Dwornikowski
>> <[EMAIL PROTECTED]> wrote:
>>
>>     
>>> I think some major ajax has to be used.
>>>       
>> Look into Component Reference on Tapestry5 documentation site
>>
>>
>> --
>> Massimo
>> http://meridio.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>     
>
>   

-- 
http://thegodcode.net

Reply via email to