myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: [Trinidad] inputFile - upload empty files ?
Date Mon, 29 Oct 2007 11:01:30 GMT
I agree with what Manfred said.

Also doing the following:

D:\thisFileDoesNotExistOnMyComputer.png
is handled as an "empty" file as well.

-M

On 10/29/07, Mario Ivankovits <mario@ops.co.at> wrote:
> Hi!
> > Technically the answer is "no" for both questions.
> > Well the pragmatical (and only reasonable) answer to the second
> > question is "yes" in the JSF spec (comp. "required" for h:inputText).
> > Therefore it makes sense to say "yes" to Q1 as well.
> >
> I think the difference here is, that if there was a file uploaded the
> user HAD provide a file by using the file-selector or entered a path.
> Means, the user made an action to upload a file - regarding to
> "required" this condition has been fulfilled.
>
> If the application needs something more than a zero byte file this is on
> their responsibility then.
>
> In contrast to the string ... you can't enter an empty string.
>
> Ciao,
> Mario
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Mime
View raw message