| org.apache.wicket.markup.html.form.FormComponentPanel org.apache.wicket.markup.html.form.upload.MultiFileUploadField
MultiFileUploadField | public class MultiFileUploadField extends FormComponentPanel implements IHeaderContributor(Code) | | Form component that allows the user to select multiple files to upload via a
single <input type="file"/> field.
Notice that this component clears its model at the end of the request, so the
uploaded files MUST be processed within the request they were uploaded.
Uses javascript implementation from
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
For customizing caption text see
MultiFileUploadField.RESOURCE_LIMITED and
MultiFileUploadField.RESOURCE_UNLIMITED For an example of styling using CSS see the upload example in wicket-examples
author: Igor Vaynberg (ivaynberg) |
Field Summary | |
final public static String | RESOURCE_LIMITED Resource key used to retrieve caption message for when a limit on the
number of uploads is specfied. | final public static String | RESOURCE_UNLIMITED Resource key used to retrieve caption message for when no limit on the
number of uploads is specfied. | final public static int | UNLIMITED |
RESOURCE_LIMITED | final public static String RESOURCE_LIMITED(Code) | | Resource key used to retrieve caption message for when a limit on the
number of uploads is specfied. The limit is represented via ${max}
variable.
Example: org.apache.wicket.mfu.caption.limited=Files (maximum ${max}):
|
RESOURCE_UNLIMITED | final public static String RESOURCE_UNLIMITED(Code) | | Resource key used to retrieve caption message for when no limit on the
number of uploads is specfied.
Example: org.apache.wicket.mfu.caption.unlimited=Files:
|
UNLIMITED | final public static int UNLIMITED(Code) | | Represents an unlimited max count of uploads
|
MultiFileUploadField | public MultiFileUploadField(String id)(Code) | | Constructor
Parameters: id - Parameters: model - |
MultiFileUploadField | public MultiFileUploadField(String id, int max)(Code) | | Constructor
Parameters: id - Parameters: model - Parameters: max - max number of files a user can upload |
MultiFileUploadField | public MultiFileUploadField(String id, IModel model)(Code) | | Constructor
Parameters: id - Parameters: model - |
MultiFileUploadField | public MultiFileUploadField(String id, IModel model, int max)(Code) | | Constructor
Parameters: id - Parameters: model - Parameters: max - max number of files a user can upload |
|
|