Matthias Wessendorf schrieb:
<tr:validateUploadedFile /> might be the better name.
I am very happy with this!
Though, should go to the upcoming commons project, shouldn't it?
Ciao,
Mario
-M
On 10/30/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
So, why not doing a
<tr:validateFileLength />
with the following attributes:
-minLength
-maxLength
-contentType
Greetings,
Matthias
On 10/29/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
Would a <tr:validateFileLength min="1" /> be more useful? Then min and
max could be used.
-A
On 10/29/07, Manfred Geiler <[EMAIL PROTECTED]> wrote:
Matze,
What about providing a standard <tr:validateNonEmptyFile> Vaidator.
This would make everybody happy, right?
lg,
Manfred
On 10/29/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
Strong -1 on this
0 byte files are very valid, especially on a unix based platform.
There are many times that a file by its existence implies meaning.
Take for example "~/.config/xserver-xgl/disable", if this file is
present, xgl mode of the linux X server is disabled for that user. The
file should be empty. This is just one small example.
If an application doesn't want to support 0 byte files, it should use
a validator or actionListener method to check the length.
-Andrew
On 10/29/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
Hi,
currently Trinidad's inputFile allows the upload of an empty file (0 bytes).
I think it shouldn't. When an inputFile object is marked as required,
I would expect that a user
does a real upload, and not a fake upload.
Sure, an app-dev could write a validation method, but I think 0-byte
is somewhat equal to "not submitted".
WDYT ?
-M
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
--
http://www.irian.at
Your JSF powerhouse - JSF Consulting,
Development and Courses in English and
German
Professional Support for Apache MyFaces
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org