All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<List<FileUpload>,GenericPanel<List<FileUpload>>>, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class BootstrapFileInput extends GenericPanel<List<FileUpload>>
Integration with Bootstrap FileInput A panel that uses a special (inner) form for Ajax file uploads with BootstrapFileInputField
See Also:
  • Constructor Details

    • BootstrapFileInput

      public BootstrapFileInput(String id)
      Constructor.
      Parameters:
      id - The component id
    • BootstrapFileInput

      public BootstrapFileInput(String id, IModel<List<FileUpload>> model)
      Constructor.
      Parameters:
      id - The component id
      model - The model that will store the uploaded files
    • BootstrapFileInput

      public BootstrapFileInput(String id, IModel<List<FileUpload>> model, FileInputConfig config)
      Constructor.
      Parameters:
      id - The component id
      model - The model that will store the uploaded files
      config - The options for the JavaScript widget
  • Method Details

    • onInitialize

      protected void onInitialize()
      Overrides:
      onInitialize in class MarkupContainer
    • onSubmit

      protected void onSubmit(AjaxRequestTarget target)
      A callback method that is called on successful file upload triggered by the usage of the Upload button.
      Parameters:
      target - The Ajax request handler
    • onError

      protected void onError(AjaxRequestTarget target)
      A callback method that is called when there is an error during an Ajax file upload
      Parameters:
      target - The Ajax request handler
    • isShowCaption

      public boolean isShowCaption()
    • withShowCaption

      public BootstrapFileInput withShowCaption(boolean showCaption)
    • isShowPreview

      public boolean isShowPreview()
    • withShowPreview

      public BootstrapFileInput withShowPreview(boolean showPreview)
    • isShowRemove

      public boolean isShowRemove()
    • withShowRemove

      public BootstrapFileInput withShowRemove(boolean showRemove)
    • isShowUpload

      public boolean isShowUpload()
    • withShowUpload

      public BootstrapFileInput withShowUpload(boolean showUpload)
    • getConfig

      public FileInputConfig getConfig()