Uses of Class
org.apache.wicket.markup.html.form.FormComponent
-
Packages that use FormComponent Package Description org.apache.wicket.ajax.form org.apache.wicket.ajax.markup.html.form org.apache.wicket.markup.html.form HTML Forms and form components.org.apache.wicket.markup.html.form.upload Support for upload forms (using multipart requests).org.apache.wicket.markup.html.form.validation Support for form validation.org.apache.wicket.util.cookies Persistence support for forms.org.apache.wicket.util.tester A package with utility classes to ease unit testing of Wicket applications without the need for a servlet container. -
-
Uses of FormComponent in org.apache.wicket.ajax.form
Methods in org.apache.wicket.ajax.form that return FormComponent Modifier and Type Method Description protected FormComponent<?>
AjaxFormComponentUpdatingBehavior. getFormComponent()
Methods in org.apache.wicket.ajax.form with parameters of type FormComponent Modifier and Type Method Description protected void
AjaxFormChoiceComponentUpdatingBehavior. checkComponent(FormComponent<?> component)
protected void
AjaxFormComponentUpdatingBehavior. checkComponent(FormComponent<?> component)
Check the component this behavior is bound to. -
Uses of FormComponent in org.apache.wicket.ajax.markup.html.form
Subclasses of FormComponent in org.apache.wicket.ajax.markup.html.form Modifier and Type Class Description class
AjaxButton
A button that submits the form via Ajax.class
AjaxCheckBox
A CheckBox which is updated via ajax when the user changes its valueclass
AjaxFallbackButton
An ajax submit button that will degrade to a normal request if ajax is not available or javascript is disabled. -
Uses of FormComponent in org.apache.wicket.markup.html.form
Subclasses of FormComponent in org.apache.wicket.markup.html.form Modifier and Type Class Description class
AbstractChoice<T,E>
Abstract base class for all choice (html select) options.class
AbstractSingleSelectChoice<T>
Abstract base class for single-select choices.class
AbstractTextComponent<T>
Abstract base class for TextArea and TextField.class
Button
A form button.class
CheckBox
HTML checkbox input component.class
CheckBoxMultipleChoice<T>
A choice subclass that shows choices via checkboxes.class
CheckGroup<T>
Component used to connect instances of Check components into a group.class
DropDownChoice<T>
A choice implemented as a dropdown menu/list.class
EmailTextField
ATextField
for HTML5 <input> with type email.class
FormComponentPanel<T>
Panel (has it's own markup, defined between <wicket:panel> tags), that can act as a form component.class
HiddenField<T>
TextField doesn't permit the html so this is a simple subclass to allow this A HiddenField is useful when you have a javascript based component that updates the form state.class
ImageButton
<input type="image"> component - likeButton
only with an image.class
ListChoice<T>
Essentially a drop down choice that doesn't drop down.class
ListMultipleChoice<T>
A multiple choice list component.class
NumberTextField<N extends Number & Comparable<N>>
ATextField
for HTML5 <input> with type number.class
PasswordTextField
A password text field component.class
RadioChoice<T>
A choice subclass that shows choices in radio style.class
RadioGroup<T>
Component used to connect instances of Radio components into a group.class
RangeTextField<N extends Number & Comparable<N>>
ATextField
for HTML5 <input> with type range.class
RequiredTextField<T>
A text field which automatically adds a Required.class
TextArea<T>
Multi-row text editing component.class
TextField<T>
A simple text field.class
UrlTextField
ATextField
for HTML5 <input> with type url.Methods in org.apache.wicket.markup.html.form that return FormComponent Modifier and Type Method Description FormComponent<T>
FormComponent. add(IValidator<? super T> validator)
Adds a validator to this form componentFormComponent<T>
FormComponent. add(IValidator<? super T>... validators)
Adds a validator to this form component.FormComponent<?>
FormComponentUpdatingBehavior. getFormComponent()
Get the hosting component.FormComponent<T>
FormComponent. remove(IValidator<? super T> validator)
Removes a validator from the form component.FormComponent<T>
AbstractTextComponent. setConvertEmptyInputStringToNull(boolean flag)
Should the bound object becomenull
when the input is empty?FormComponent<T>
FormComponent. setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.FormComponent<T>
FormComponent. setRequired(boolean required)
Sets the required flagFormComponent<T>
AbstractChoice. setType(Class<?> type)
FormComponent<T>
FormComponent. setType(Class<?> type)
Sets the type that will be used when updating the model for this component.Methods in org.apache.wicket.markup.html.form with parameters of type FormComponent Modifier and Type Method Description void
Form.ValidationVisitor. component(FormComponent<?> formComponent, org.apache.wicket.util.visit.IVisit<Void> visit)
static <S> void
FormComponent. updateCollectionModel(FormComponent<Collection<S>> formComponent)
Update the model of aFormComponent
containing aCollection
.void
AutoLabelResolver.AutoLabelMarker. updateFrom(FormComponent<?> component, AjaxRequestTarget target)
abstract void
Form.ValidationVisitor. validate(FormComponent<?> formComponent)
Callback that should be used to validate form componentMethod parameters in org.apache.wicket.markup.html.form with type arguments of type FormComponent Modifier and Type Method Description <R> R
Form. visitFormComponents(org.apache.wicket.util.visit.IVisitor<FormComponent<?>,R> visitor)
Convenient and typesafe way to visit all the form components on a form.<R> R
Form. visitFormComponentsPostOrder(org.apache.wicket.util.visit.IVisitor<? extends FormComponent<?>,R> visitor)
Convenient and typesafe way to visit all the form components on a form postorder (deepest first)static <R> R
FormComponent. visitFormComponentsPostOrder(Component component, org.apache.wicket.util.visit.IVisitor<? extends FormComponent<?>,R> visitor)
Visits any form components inside component if it is a container, or component itself if it is itself a form componentConstructors in org.apache.wicket.markup.html.form with parameters of type FormComponent Constructor Description AutoLabelMarker(FormComponent<?> component)
-
Uses of FormComponent in org.apache.wicket.markup.html.form.upload
Subclasses of FormComponent in org.apache.wicket.markup.html.form.upload Modifier and Type Class Description class
FileUploadField
Form component that corresponds to a <input type="file">.class
MultiFileUploadField
Form component that allows the user to select multiple files to upload via a single <input type="file"/> field. -
Uses of FormComponent in org.apache.wicket.markup.html.form.validation
Methods in org.apache.wicket.markup.html.form.validation that return FormComponent Modifier and Type Method Description FormComponent<?>[]
EqualInputValidator. getDependentFormComponents()
FormComponent<?>[]
FormValidatorAdapter. getDependentFormComponents()
FormComponent<?>[]
IFormValidator. getDependentFormComponents()
Methods in org.apache.wicket.markup.html.form.validation with parameters of type FormComponent Modifier and Type Method Description void
AbstractFormValidator. error(FormComponent<?> fc)
Reports an error against validatable using the map returned byAbstractFormValidator.variablesMap()
for variable interpolations and message key returned byAbstractFormValidator.resourceKey()
.void
AbstractFormValidator. error(FormComponent<?> fc, String resourceKey)
Reports an error against the validatable using the given resource keyvoid
AbstractFormValidator. error(FormComponent<?> fc, String resourceKey, Map<String,Object> vars)
Reports an error against the validatable using the specified resource key and variable mapvoid
AbstractFormValidator. error(FormComponent<?> fc, Map<String,Object> vars)
Reports an error against the validatable using the given map for variable interpolations and message resource key provided byAbstractFormValidator.resourceKey()
Constructors in org.apache.wicket.markup.html.form.validation with parameters of type FormComponent Constructor Description EqualInputValidator(FormComponent<?> formComponent1, FormComponent<?> formComponent2)
Construct.EqualPasswordInputValidator(FormComponent<?> formComponent1, FormComponent<?> formComponent2)
Construct. -
Uses of FormComponent in org.apache.wicket.util.cookies
Methods in org.apache.wicket.util.cookies with parameters of type FormComponent Modifier and Type Method Description protected String
CookieUtils. getKey(FormComponent<?> component)
This method gets used when a cookie key needs to be derived from a form component.String
CookieUtils. load(FormComponent<?> formComponent)
Retrieve the cookie value associated with the formComponent and load the model object with the cookie value.void
CookieUtils. remove(FormComponent<?> formComponent)
Remove the cookie identified by the form componentvoid
CookieUtils. save(FormComponent<?> formComponent)
Save the form components model value in a cookie -
Uses of FormComponent in org.apache.wicket.util.tester
Methods in org.apache.wicket.util.tester with parameters of type FormComponent Modifier and Type Method Description protected abstract void
FormTester.ChoiceSelector. assignValueToFormComponent(FormComponent<?> formComponent, String value)
Implements whether toggle or accumulate the selection.static String[]
FormTester. getInputValue(FormComponent<?> formComponent)
Gets request parameter values for the form component that represents its current model valueResult
BaseWicketTester. isNotRequired(FormComponent<?> component)
Asserts that a component is not required.Result
BaseWicketTester. isRequired(FormComponent<?> component)
assert component required.Constructors in org.apache.wicket.util.tester with parameters of type FormComponent Constructor Description ChoiceSelector(FormComponent<?> formComponent)
Constructor.
-