A file upload request is an AJAX request that is processed
in the AJAX channel.
Architecture
The architecture for an AJAX
file upload request in a
WebSphere® Multichannel
Bank Transformation Toolkit application
consists of two core components:
- Web 2.0 runtime
- Supports the WebSphere Multichannel
Bank Transformation Toolkit FileUpload
widget to enable users to submit AJAX file upload requests.
- WebSphere Multichannel
Bank Transformation Toolkit AJAX
channel
- Enables AJAX file upload requests to be submitted to and processed
by the application server.
Both the Web 2.0 runtime and the
WebSphere Multichannel
Bank Transformation Toolkit AJAX channel
can be extended and customized by an alpha developer.
Figure 1. Architecture of an AJAX file upload request in a WebSphere Multichannel
Bank Transformation Toolkit application.
The FileUpload widget supported by Web 2.0 runtime
Figure 2 shows the
WebSphere Multichannel
Bank Transformation Toolkit FileUpload
widget.
Figure 2. The WebSphere Multichannel
Bank Transformation Toolkit FileUpload
widget
The FileUpload widget consists of the following widgets:
- FileUploader
- In Figure 2, the Browse button
is the FileUploader widget. When a FileUploader widget is clicked,
a window opens that allows a user to select the file that they want
to upload.
- Text
- If a file upload request has been processed successfully, the
name of the file is displayed in the Text widget. If the file upload
request fails, an error message is displayed instead.
- Button
- The Button widgets in a FileUpload widget can be configured to
enable a user to cancel a file upload request and to remove an uploaded
file.
Multilingual support is provided for Button
widget in the FileUpload widget. Multilingual support for a FileUpload
widget can be configured only by a developer. A user cannot change
the text that is displayed on a button of the FileUpload widget.
Fore
more information on the properties of the FileUpload widget, refer
to the FileUpload section in the Widget description chapter of the
Development Tooling guide.
WebSphere Multichannel
Bank Transformation Toolkit AJAX
channel
The WebSphere Multichannel
Bank Transformation Toolkit AJAX channel
consists of the file upload handler and the file upload servlet. For
more information on the file upload handler and the file upload servlet,
refer to the following sections.