Need to distinguish between FileUpload's Empty Field and Bad File

2011-05-11 Thread eugenebalt
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

Re: Need to distinguish between FileUpload's Empty Field and Bad File

2011-05-11 Thread eugenebalt
Since no one's replied, I guess there's no way to distinguish. Empty file box and invalid file are one and the same, and Wicket doesn't expose that granularity. I tried attaching a validator to the file box for an invalid file check and also did setRequired(true) to check for blanks, and the