When we released, one of the components listed was the FileChooser: a Dialog that provided the means for a user to upload a file to the application. The problem is that this component only worked in IE (sorta).
I am pleased to announde a new FileChooser that plays nicely in all browsers, and behaves itself in the framework better than its predecessor. The new FileChooser is essentially a compound component (you know, the kind of component we keep saying that any developer can create). It is a Panel with a TextField and a Button. Of course there is some client JavaScript magic that gets invoked, but the amount of that has been significantly reduced.
FileChooser is no longer a floating Dialog, but the new Component contains a static method that behaves just like the old FileChooser (except that it works in all browsers). Just call FileChooser.show() to get the dialog.
The new FileChooser is a Component that can be added to any Panel. The user clicks the button and is presented with the browser’s file dialog. When the user selects a file, the file name is populated into the TextField. The file itself isn’t uploaded until the getFileInfo() method is called. This method causes the browser to submit the file, and returns a FileInfo object.
