This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 96989

Summary: File Upload component choosen file value will not survive a postback
Product: obsolete Reporter: David Botterill <dbotterill>
Component: visualwebAssignee: Winston Prakash <wjprakash>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 96968    

Description David Botterill 2007-03-01 18:55:27 UTC
If you choose a file with the file upload component, then do any kind of
postback to the page, the chosen file is gone and the textfield is empty.

Steps to reproduce:

1. Add a textfield and make it required
2. add a file upload component
3. add a message group
4. add a button.
5. run the web app.
6. choose a file with the browse button for the file upload
7. now push the button you added.
8. a postback will happen because of a validation error and the file updload
component textfield is empty.

I've tried everything including binding the file upload component to an
"UpLoadedFile" but the choosen file value ALWAYS goes away.
Comment 1 Lark Fitzgerald 2007-06-13 02:28:17 UTC
The J2EE 1.4 Sun Web UI Component library based on JSF 1.1 is now under maintenance mode. Only P1/P2 bugs reported on 
these components will be addressed. All current development efforts are being focused on Java EE 5 Project Woodstock 
component library based on JSF 1.2.

Note: this behavior is as designed for security reasons.