public class BootstrapFileInput extends org.apache.wicket.markup.html.panel.GenericPanel<List<org.apache.wicket.markup.html.form.upload.FileUpload>>
Integration with Bootstrap FileInput
A panel that uses a special (inner) form for Ajax file uploads with BootstrapFileInputField
| Constructor and Description |
|---|
BootstrapFileInput(String id)
Constructor.
|
BootstrapFileInput(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.markup.html.form.upload.FileUpload>> model)
Constructor.
|
BootstrapFileInput(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.markup.html.form.upload.FileUpload>> model,
FileInputConfig config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShowCaption() |
boolean |
isShowPreview() |
boolean |
isShowRemove() |
boolean |
isShowUpload() |
protected void |
onError(org.apache.wicket.ajax.AjaxRequestTarget target)
A callback method that is called when there is an error during an Ajax file upload
|
protected void |
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
A callback method that is called on successful file upload triggered by the usage of the Upload button.
|
BootstrapFileInput |
withShowCaption(boolean showCaption) |
BootstrapFileInput |
withShowPreview(boolean showPreview) |
BootstrapFileInput |
withShowRemove(boolean showRemove) |
BootstrapFileInput |
withShowUpload(boolean showUpload) |
getModel, getModelObject, setModel, setModelObjectgetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic BootstrapFileInput(String id)
Constructor.
id - The component idpublic BootstrapFileInput(String id, org.apache.wicket.model.IModel<List<org.apache.wicket.markup.html.form.upload.FileUpload>> model)
Constructor.
id - The component idmodel - The model that will store the uploaded filespublic BootstrapFileInput(String id, org.apache.wicket.model.IModel<List<org.apache.wicket.markup.html.form.upload.FileUpload>> model, FileInputConfig config)
Constructor.
id - The component idmodel - The model that will store the uploaded filesconfig - The options for the JavaScript widgetprotected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
A callback method that is called on successful file upload triggered by the usage of the Upload button.
target - The Ajax request handlerprotected void onError(org.apache.wicket.ajax.AjaxRequestTarget target)
A callback method that is called when there is an error during an Ajax file upload
target - The Ajax request handlerpublic boolean isShowCaption()
public BootstrapFileInput withShowCaption(boolean showCaption)
public boolean isShowPreview()
public BootstrapFileInput withShowPreview(boolean showPreview)
public boolean isShowRemove()
public BootstrapFileInput withShowRemove(boolean showRemove)
public boolean isShowUpload()
public BootstrapFileInput withShowUpload(boolean showUpload)
Copyright © 2011–2014 AgileCoders. All rights reserved.