wicket.markup.html.form.upload
Class UploadForm

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.form.Form
                  extended bywicket.markup.html.form.upload.UploadForm
All Implemented Interfaces:
IFeedbackBoundary, IFormSubmitListener, IRequestListener, java.io.Serializable

public abstract class UploadForm
extends Form

Form for handling (file) uploads with multipart requests. Use this with FileUploadFieldcomponents. You can attach mutliple FileInput fields for muliple file uploads.

This class depends on package Commons FileUpload, version 1.0.

Author:
Eelco Hillenius, Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.Component
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.Component
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4
 
Constructor Summary
UploadForm(java.lang.String id)
           
UploadForm(java.lang.String id, IFeedback validationFeedback)
           
UploadForm(java.lang.String id, IModel model, IFeedback feedback)
           
 
Method Summary
protected  void onComponentTag(ComponentTag tag)
          Processes the component tag.
 void onFormSubmitted()
          Wraps the servlet request in a multipart request and sets it as the current request.
protected abstract  void onSubmit()
          Implemented by subclasses to deal with form submits.
 void setMaxSize(Bytes maxSize)
           
 
Methods inherited from class wicket.markup.html.form.Form
getValidationStrategy, getValuePersister, internalOnModelChanged, loadPersistentFormComponentValues, onError, onValidate, removePersistentFormComponentValues, setVersioned, validate, visitFormComponents
 
Methods inherited from class wicket.markup.html.WebMarkupContainer
getMarkupType, onRender
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, debug, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getId, getLocale, getLocalizer, getModel, getModelObject, getModelObjectAsString, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResource, getResponse, getSession, getString, getString, getString, getStyle, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnBeginRequest, internalOnEndRequest, internalOnModelChanging, isAncestorOf, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onBeginRequest, onEndRequest, onModelChanged, onModelChanging, onSessionAttach, redirectTo, remove, render, renderComponent, renderComponentTag, rendered, replaceComponentTagBody, sameRootModel, sameRootModel, setFlag, setModelObject, setRedirect, setRenderBodyOnly, setResponsePage, setShouldEscapeModelStrings, setVisible, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadForm

public UploadForm(java.lang.String id)
See Also:
Component.Component(String)

UploadForm

public UploadForm(java.lang.String id,
                  IFeedback validationFeedback)
See Also:
Form.Form(String, IFeedback)

UploadForm

public UploadForm(java.lang.String id,
                  IModel model,
                  IFeedback feedback)
See Also:
Form.Form(String, IModel, IFeedback)
Method Detail

onFormSubmitted

public void onFormSubmitted()
Wraps the servlet request in a multipart request and sets it as the current request.

Specified by:
onFormSubmitted in interface IFormSubmitListener
Overrides:
onFormSubmitted in class Form
See Also:
Form.onFormSubmitted()

setMaxSize

public void setMaxSize(Bytes maxSize)
Parameters:
maxSize - The maxSize to set.

onComponentTag

protected final void onComponentTag(ComponentTag tag)
Description copied from class: Component
Processes the component tag.

Overrides:
onComponentTag in class Form
See Also:
Component.onComponentTag(ComponentTag)

onSubmit

protected abstract void onSubmit()
Description copied from class: Form
Implemented by subclasses to deal with form submits.

Overrides:
onSubmit in class Form
See Also:
Form.onSubmit()


Copyright © 2004-2005 Wicket developers. All Rights Reserved.