I end up just supporting the upload of zip files. It might not be as
convenient as just choosing multiple files when uploading but does the
trick. All I found was the possibility of uploading multiple files but
having multiple x:inputfile and the user would still have to choose
one file at a time. Thanks.


On Mar 30, 2005 6:08 PM, Heath Borders <[EMAIL PROTECTED]> wrote:
> Well, I understand why they wouldn't let us prepopulate it, but I'm
> talking more about being able ot select more than 1 file at a time.  I
> don't see what could be wrong with that.
> 
> 
> On Wed, 30 Mar 2005 15:04:44 -0800, Korhonen, Kalle <[EMAIL PROTECTED]> wrote:
> > > -----Original Message-----
> > > From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
> > > Subject: Re: <x:inputFileUpload - How to upload multiple
> > > files at once?
> > > I've been wondering about that: the file blanking out. Does
> > > anyone know what the issue there is? Is it just a known
> > > limitation in <input type="file"/>? A bug in the browser? A
> > > problem with the MyFaces JSF component? I noticed that it
> > > does set the value attribute correctly. The browser just
> > > doesn't put the value into the text box for some reason...
> >
> > Maybe because of security? Otherwise you could populate the field
> > yourself then hide it with a DHTML layer and just try to trick user into
> > submitting something that user think is harmless. I don't know, just a
> > thought.
> >
> > Kalle
> >
> > > ----- Original Message -----
> > > From: "Heath Borders" <[EMAIL PROTECTED]>
> > > To: "MyFaces Discussion" <[email protected]>
> > > Sent: Tuesday, March 29, 2005 8:39 PM
> > > Subject: Re: <x:inputFileUpload - How to upload multiple
> > > files at once?
> > >
> > >
> > > > You can't use javascript to prompt for the files, unfortunately.
> > > > If fact, if you re-post, that field blanks out.
> > > >
> > > >
> > > > On Tue, 29 Mar 2005 19:21:12 -0600, Aaron Bartell
> > > > <[EMAIL PROTECTED]> wrote:
> > > >> My guess is that this is what the guy wants except not
> > > built with a Java
> > > >> Applet
> > > >>
> > > >> http://jupload.biz/en_10.html (I like this one the best)
> > > >> http://www.javazoom.net/applets/jclientupload/jclientupload.html
> > > >> http://www.radinks.com/upload/
> > > >>
> > > >> The gmail one is still a lot of work for the end user
> > > because if they
> > > >> want to upload multiple files they have to do so with
> > > separate "Browse"
> > > >> buttons when it would be really nice to be able to select
> > > multiple files
> > > >> at once.
> > > >>
> > > >> I would love to have a MyFaces UI component for this, but
> > > I am not sure
> > > >> how one would do this from the client end unless you could use
> > > >> JavaScript to prompt for the files (sadly I am no JavaScript wiz).
> > > >>
> > > >> Aaron Bartell
> > > >>
> > > >> Deadman, Hal wrote:
> > > >>
> > > >> >Has anyone looked into how the Gmail "attach a file" link
> > > works? They
> > > >> >don't seem to display an <input type="file"> control (unless it's
> > > >> >heavily modified via css) and they let you attach an
> > > arbitrary number of
> > > >> >files fairly easily albeit with multiple invocations of
> > > the Choose File
> > > >> >dialog.
> > > >> >
> > > >> >I suspect if there was any way to make the "Choose file"
> > > dialog select
> > > >> >multiple files in a single invocation then the gmail
> > > developers would
> > > >> >have done it.
> > > >> >
> > > >> >The gmail file upload interface would make a nice JSF
> > > control if it is
> > > >> >not out there already.
> > > >> >
> > > >> >
> > > >> >
> > > >> >>-----Original Message-----
> > > >> >>From: David G. Friedman [mailto:[EMAIL PROTECTED]
> > > >> >>Sent: Tuesday, March 29, 2005 6:39 PM
> > > >> >>To: MyFaces Discussion
> > > >> >>Subject: RE: <x:inputFileUpload - How to upload multiple files at
> > > >> >>
> > > >> >>
> > > >> >once?
> > > >> >
> > > >> >
> > > >> >>Heath,
> > > >> >>
> > > >> >>I'll debate that.  I recall a Struts posting where someone made a
> > > >> >>
> > > >> >>
> > > >> >custom
> > > >> >
> > > >> >
> > > >> >>class to detect and process multiple files in a SINGLE
> > > file upload
> > > >> >>
> > > >> >>
> > > >> >field.
> > > >> >
> > > >> >
> > > >> >>But, we're not Struts, are we? LOL.
> > > >> >>
> > > >> >>Regards,
> > > >> >>David
> > > >> >>
> > > >> >>-----Original Message-----
> > > >> >>From: Heath Borders [mailto:[EMAIL PROTECTED]
> > > >> >>Sent: Tuesday, March 29, 2005 6:33 PM
> > > >> >>To: MyFaces Discussion
> > > >> >>Subject: Re: <x:inputFileUpload - How to upload multiple files at
> > > >> >>
> > > >> >>
> > > >> >once?
> > > >> >
> > > >> >
> > > >> >>I don't think that the HTML element <input type="file"> supports
> > > >> >>multiple files.  I think you can only select a single file.
> > > >> >>
> > > >> >>
> > > >> >>On Tue, 29 Mar 2005 17:02:59 -0600, Jonathan Eric Miller
> > > >> >><[EMAIL PROTECTED]> wrote:
> > > >> >>
> > > >> >>
> > > >> >>>I'm guessing he's talking about doing it with a single
> > > component. I
> > > >> >>>
> > > >> >>>
> > > >> >>think
> > > >> >>in
> > > >> >>
> > > >> >>
> > > >> >>>theory, it is possible to do this (assuming I was reading the
> > > >> >>>commons-fileupload documentation correctly) using an <input
> > > >> >>>
> > > >> >>>
> > > >> >>type="file"/>.
> > > >> >>
> > > >> >>
> > > >> >>>However, if I remember correctly, the MyFaces component
> > > didn't look
> > > >> >>>
> > > >> >>>
> > > >> >like
> > > >> >
> > > >> >
> > > >> >>it
> > > >> >>
> > > >> >>
> > > >> >>>supported that. If I remember correctly, it looked like
> > > it assumed
> > > >> >>>
> > > >> >>>
> > > >> >that
> > > >> >
> > > >> >
> > > >> >>one
> > > >> >>
> > > >> >>
> > > >> >>>file was being uploaded. I never tested it with multiple files.
> > > >> >>>
> > > >> >>>Jon
> > > >> >>>
> > > >> >>>----- Original Message -----
> > > >> >>>From: "Heath Borders" <[EMAIL PROTECTED]>
> > > >> >>>To: "MyFaces Discussion" <[email protected]>;
> > > >> >>>
> > > >> >>>
> > > >> >"Victor
> > > >> >
> > > >> >
> > > >> >>Gomez"
> > > >> >>
> > > >> >>
> > > >> >>><[EMAIL PROTECTED]>
> > > >> >>>Sent: Tuesday, March 29, 2005 4:19 PM
> > > >> >>>Subject: Re: <x:inputFileUpload - How to upload
> > > multiple files at
> > > >> >>>
> > > >> >>>
> > > >> >once?
> > > >> >
> > > >> >
> > > >> >>>>Do you mean using more than one <x:inputFileUpload />
> > > or using a
> > > >> >>>>single <x:inputFileUpload />?
> > > >> >>>>
> > > >> >>>>
> > > >> >>>>On Tue, 29 Mar 2005 17:10:48 -0500, Victor Gomez
> > > >> >>>>
> > > >> >>>>
> > > >> ><[EMAIL PROTECTED]>
> > > >> >
> > > >> >
> > > >> >>wrote:
> > > >> >>
> > > >> >>
> > > >> >>>>>Is there a way to upload multiple files using the
> > > >> >>>>>
> > > >> >>>>>
> > > >> >x:inputFileUpload
> > > >> >
> > > >> >
> > > >> >>>>>component?
> > > >> >>>>>Any directions/suggestions are welcomed.
> > > >> >>>>>Thank you.
> > > >> >>>>>
> > > >> >>>>>
> > > >> >>>>>
> > > >> >>>>--
> > > >> >>>>-Heath Borders-Wing
> > > >> >>>>[EMAIL PROTECTED]
> > > >> >>>>
> > > >> >>>>
> > > >> >>>>
> > > >> >>>
> > > >> >>>
> > > >> >>--
> > > >> >>-Heath Borders-Wing
> > > >> >>[EMAIL PROTECTED]
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >
> > > >
> > > > --
> > > > -Heath Borders-Wing
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
> 
> --
> -Heath Borders-Wing
> [EMAIL PROTECTED]
>

Reply via email to