public abstract class AjaxFileUploadBehavior
extends org.apache.wicket.behavior.AbstractAjaxBehavior
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_JSON |
static String |
JQUERY_FILEUPLOAD_ERROR |
static String |
JQUERY_FILEUPLOAD_FILES |
static String |
JQUERY_FILEUPLOAD_NAME |
static String |
JQUERY_FILEUPLOAD_SIZE |
Constructor and Description |
---|
AjaxFileUploadBehavior(org.apache.wicket.markup.html.WebMarkupContainer container) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAfterUpload(org.apache.wicket.util.upload.FileItem file,
FileUploadInfo fileUploadInfo) |
protected void |
onBeforeUpload(FileUploadInfo fileUploadInfo)
Event is fired before processing the uploaded file.
|
void |
onRequest() |
protected void |
onResponse(org.apache.wicket.protocol.http.servlet.ServletWebRequest request,
Map<String,FileUploadInfo> uploadedFiles) |
protected void |
onUploadError(FileUploadInfo fileUploadInfo) |
protected abstract void |
process(org.apache.wicket.markup.html.form.upload.FileUpload fileUpload) |
protected void |
setResponse(org.apache.wicket.protocol.http.servlet.ServletWebRequest request,
Map<String,FileUploadInfo> uploadedFiles) |
protected boolean |
wantsHtml(org.apache.wicket.protocol.http.servlet.ServletWebRequest request)
Decides what should be the response's content type depending on the 'Accept' request header.
|
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public static final String APPLICATION_JSON
public static final String JQUERY_FILEUPLOAD_FILES
public static final String JQUERY_FILEUPLOAD_NAME
public static final String JQUERY_FILEUPLOAD_SIZE
public static final String JQUERY_FILEUPLOAD_ERROR
public AjaxFileUploadBehavior(org.apache.wicket.markup.html.WebMarkupContainer container)
public void onRequest()
protected void onBeforeUpload(FileUploadInfo fileUploadInfo)
protected void onUploadError(FileUploadInfo fileUploadInfo)
protected abstract void process(org.apache.wicket.markup.html.form.upload.FileUpload fileUpload) throws FileUploadViolationException
FileUploadViolationException
protected void setResponse(org.apache.wicket.protocol.http.servlet.ServletWebRequest request, Map<String,FileUploadInfo> uploadedFiles)
protected boolean wantsHtml(org.apache.wicket.protocol.http.servlet.ServletWebRequest request)
request
- protected void onAfterUpload(org.apache.wicket.util.upload.FileItem file, FileUploadInfo fileUploadInfo)
protected void onResponse(org.apache.wicket.protocol.http.servlet.ServletWebRequest request, Map<String,FileUploadInfo> uploadedFiles)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.