A {@link Behavior} that can be used on {@link FileUploadField}-s to receive ajax callback with detailed information about the chosen files when an event occurs (default: "onchange"). When the ajax call is triggered (for example user selects files for upload) the metadata about the file(s) (name, size, type, last modify date) is sent with the ajax call to the server (so the content is not). Subclasses of this class can respond to this event by implementing the {@link #onEvent(AjaxRequestTarget,FileList)} method.
Works with single or multiple enabled file inputs.
Note that this behaviour only works with browsers implementing the Html5 FileApi (Chrome 11, Firefox 4). It does not change or break browsers not implementing the api.
@author akiraly
|
|
|
|