InputFileUpload field reset

Does someone know how to prevent the MyFaces inputfileupload-fields to be reset after validation errors?

We have a form containing some fields with the required attribute set on "true" and one InputFileUpload field. When required fields are left blank, the InputFileUpload field is being reset, which is quite annoying. I tried with a binding and a valuechangelistener, but nothing helps.

Any help would be appreciated/

[438 byte] By [Freyaa] at [2007-10-3 2:18:09]
# 1
Hi Freya,unfortunately I have no answer concerning your question, I have the same problem. Perhaps you have already found an solution and might send me a short explanation ?Thanks a lot
mikel_stonea at 2007-7-14 19:17:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi, there's a web page with a similar question here:

http://marc.theaimsgroup.com/?l=myfaces-user&m=115107482801503&w=2

"Is there a way to store the inputFileUpload file even if there are process validation errors on other components? I don't want the user to

have to re-upload a file if they forgot some other required field, for example.

Thanks"

The guy seems like he solved the problem in the end through a suggestion so it might help ye.

Here's the example he made afterwards:

http://wiki.apache.org/myfaces/Setup_For_File_Uploads

Cheers,

Illu

Message was edited by:

Illu

Illua at 2007-7-14 19:17:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...