Example usage for Java org.apache.wicket.markup.html.form Form fields, constructors, methods, implement or subclass
The text is from its open source code.
Form(final String id) Constructs a form with no validation. | |
Form(final String id, final IModel |
void | add(final IFormValidator validator) Adds a form validator to the form. |
MarkupContainer | addOrReplace(final Component... children) Replaces a child component of this container with another or just adds it in case no child with the same id existed yet. |
void | clearInput() Clears the input from the form's nested children of type FormComponent . |
void | error(String error, Map Registers an error feedback message for this component |
void | error(final Serializable message) Registers an error feedback message for this component |
Form> | findForm(Component component) |
IFormSubmitter | findSubmittingButton() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
Component | get(String path) Get a child component by looking it up with the given path. |
Application | getApplication() Gets interface to application that this component is a part of. |
List | getBehaviors(Class Gets the subset of the currently coupled Behavior s that are of the provided type as an unmodifiable list. |
IConverter | getConverter(Class Get the converter that should be used by this component, delegates to #createConverter(Class) and then to the application's IConverterLocator . |
IModel> | getDefaultModel() Gets the model. |
Object | getDefaultModelObject() Gets the backing model object. |
FeedbackMessages | getFeedbackMessages() Gets feedback messages for this component. |
String | getId() Gets the id of this component. |
IModel> | getInnermostModel() |
CharSequence | getJsForInterfaceUrl(CharSequence url) |
Locale | getLocale() Gets the locale for this component. |
Localizer | getLocalizer() Convenience method to provide easy access to the localizer object within any component. |
ValueMap | getMarkupAttributes() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
String | getMarkupId() Retrieves id by which this component is represented within the markup. |
Bytes | getMaxSize() Gets the maximum size for uploads. |
IModel | getModel() Typesafe getter for the model |
T | getModelObject() Typesafe getter for the model's object |
Page | getPage() Gets the page holding this component. |
MarkupContainer | getParent() Gets any parent container, or null if there is none. |
Request | getRequest() |
Form> | getRootForm() Returns the root form or this, if this is the root form. |
String | getRootFormRelativeId(Component component) Utility method to assemble an id to distinct form components from different nesting levels. |
String | getString(final String key) |
WebPage | getWebPage() A convenience method to return the WebPage. |
boolean | hasError() Gets whether the current form has any error registered. |
boolean | hasFeedbackMessage() |
void | info(final Serializable message) Registers an informational feedback message for this component |
boolean | isEnabledInHierarchy() Calculates enabled state of the component taking its hierarchy into account. |
boolean | isSubmitted() Checks if this form has been submitted during the current request |
boolean | isVisibleInHierarchy() Checks if the component itself and all its parents are visible. |
void | process(IFormSubmitter submittingComponent) Process the form. |
void | remove(final IFormValidator validator) Removes a form validator from the form. |
MarkupContainer | replace(final Component child) Replaces a child component of this container with another |
void | setDefaultButton(IFormSubmittingComponent submittingComponent) Sets the default IFormSubmittingComponent. |
MarkupContainer | setDefaultModel(final IModel> model) |
Component | setEnabled(final boolean enabled) Sets whether this component is enabled. |
void | setMarkupId(Component comp) Copy markupId |
void | setMaxSize(final Bytes maxSize) Sets the maximum size for uploads. |
C | setModel(IModel Typesafe setter for the model |
C | setModelObject(T object) Typesafe setter for the model object |
void | setMultiPart(boolean multiPart) Set to true to use enctype='multipart/form-data', and to process file uploads by default multiPart = false |
Component | setOutputMarkupId(final boolean output) Sets whether or not component will output id attribute into the markup. |
Component | setOutputMarkupPlaceholderTag(final boolean outputTag) Render a placeholder tag when the component is not visible. |
Component | setVisibilityAllowed(boolean allowed) Sets whether or not this component is allowed to be visible. |
Component | setVisible(final boolean visible) Sets whether this component and any children are visible. |
void | success(final Serializable message) Registers an success feedback message for this component |
R | visitChildren(final Class> clazz, final IVisitor Traverses all child components of the given class in this container, calling the visitor's visit method at each one. |
R | visitChildren(final IVisitor Traverses all child components in this container, calling the visitor's visit method at each one. |
R | visitFormComponents(final IVisitor Convenient and typesafe way to visit all the form components on a form. |
R | visitFormComponentsPostOrder(final IVisitor extends FormComponent>, R> visitor) Convenient and typesafe way to visit all the form components on a form postorder (deepest first) |
void | warn(final Serializable message) Registers a warning feedback message for this component. |