You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Johnny Gonzalez <jo...@yahoo.es> on 2006/01/19 21:56:09 UTC
Setting default value for
Hello everybody,
I have an application which has the possibility to
upload a file, everything works fine, but I need to
provide a default file, to show in the control once
the page loads, how could I do that?
I have this in my JSP:
<x:inputFileUpload id="fileToSelect"
value="#{MyFileBean.fileSelected}"
storage="file" required="true"/>
What should I write in my constructor for a default
file to appear (like: /tmp/files/myfile.txt) in the
box of the component?
Thanks a lot,
Johnny
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
Re: Setting default value for
Posted by Johnny Gonzalez <jo...@yahoo.es>.
Hello Volker,
Ok, thanks a lot, I thought it would be possible, but
no problem.
Thanks,
Johnny
--- Volker Weber <us...@weber-oldenburg.de>
escribió:
> Hi Johnny,
>
> in short: You *can't* do that!
>
> For security reasons no modern browser allows to
> preselect the value of
> a fileUpload controll.
>
> Regards,
> Volker
>
> Johnny Gonzalez wrote:
> > Hello everybody,
> >
> > I have an application which has the possibility to
> > upload a file, everything works fine, but I need
> to
> > provide a default file, to show in the control
> once
> > the page loads, how could I do that?
> >
> [...]
> > ______________________________________________
> > LLama Gratis a cualquier PC del Mundo.
> > Llamadas a fijos y móviles desde 1 céntimo por
> minuto.
> > http://es.voice.yahoo.com
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via
> mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
Re: Setting default value for
Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Johnny,
in short: You *can't* do that!
For security reasons no modern browser allows to preselect the value of
a fileUpload controll.
Regards,
Volker
Johnny Gonzalez wrote:
> Hello everybody,
>
> I have an application which has the possibility to
> upload a file, everything works fine, but I need to
> provide a default file, to show in the control once
> the page loads, how could I do that?
>
[...]
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.