One final question on the FileUpload.

I need to differentiate between 2 kinds of errors (I display a different
message for each),

1) The FileUpload box is empty (i.e., nothing was typed in, and the Browse
button wasn't clicked),
2) The file does not exist (a filename was typed in, but that file does not

Both of these scenarios seem to be handled the same by Wicket: my Model is
NULL. It's NULL even if I type something in, as long as it's invalid.

(If my entry is valid, the Model then holds the FileUpload.)

So, is there a way to distinguish between "empty field" and "file does not
exist", and have a way to catch both of these?

Thanks again

View this message in context:
Sent from the Users forum mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to