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 - File Upload component choosen file value will not survive a postback
Summary: File Upload component choosen file value will not survive a postback
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks: 96968
  Show dependency tree
 
Reported: 2007-03-01 18:55 UTC by David Botterill
Modified: 2007-06-13 02:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.