public class BootstrapFileInputField
extends org.apache.wicket.markup.html.form.upload.FileUploadField
Integration with Bootstrap FileInput
| Modifier and Type | Field and Description |
|---|---|
static String |
JQUERY_IDENTIFIER_UPLOAD_BUTTON_CLASS
Make sure that this class is inside the uploadClass config, otherwise the ajax behavior will not work!
|
| Constructor and Description |
|---|
BootstrapFileInputField(String id)
Constructor
|
BootstrapFileInputField(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.markup.html.form.upload.FileUpload>> model)
Constructor
|
BootstrapFileInputField(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 |
|---|---|
FileInputConfig |
getConfig() |
protected org.apache.wicket.ajax.form.AjaxFormSubmitBehavior |
newAjaxFormSubmitBehavior(String event)
Creates the special Ajax behavior that is used to upload the file(s) with Ajax by using the Upload button
|
protected void |
onConfigure() |
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
convertValue, forceCloseStreamsOnDetach, getFileUpload, getFileUploads, getInputAsArray, isMultiPart, onComponentTag, onDetach, updateModeladd, add, checkRequired, clearInput, convertInput, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isRequired, isValid, newValidatable, newValidationError, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebPage, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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 static final String JQUERY_IDENTIFIER_UPLOAD_BUTTON_CLASS
Make sure that this class is inside the uploadClass config, otherwise the ajax behavior will not work!
public BootstrapFileInputField(String id)
Constructor
id - The component idpublic BootstrapFileInputField(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 BootstrapFileInputField(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 configuration for this file inputpublic FileInputConfig getConfig()
protected void onConfigure()
onConfigure in class org.apache.wicket.Componentprotected org.apache.wicket.ajax.form.AjaxFormSubmitBehavior newAjaxFormSubmitBehavior(String event)
Creates the special Ajax behavior that is used to upload the file(s) with Ajax by using the Upload button
event - The name of the JavaScript event that will trigger the Ajax uploadpublic void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class org.apache.wicket.ComponentCopyright © 2011–2014 AgileCoders. All rights reserved.