Type Parameters:
T - type of filter state object
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,Form<T>>, IMetadataContext<Serializable,Component>, IRequestListener, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class FilterForm<T> extends Form<T>
A form with filter-related special functionality for its form components.

This form uses an invisible button to be able to submit when the user presses the ENTER key. If there is a need to add an explicit IFormSubmittingComponent to this form then Form.setDefaultButton(org.apache.wicket.markup.html.form.IFormSubmittingComponent) should be used to specify this custom submitting component.

See Also:
  • Constructor Details

  • Method Details

    • renderHead

      public void renderHead(IHeaderResponse response)
      Description copied from class: Component
      Render to the web response whatever the component wants to contribute to the head section.
      Specified by:
      renderHead in interface IHeaderContributor
      renderHead in class Form<T>
      response - Response object
    • onComponentTagBody

      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
      Append an additional hidden input tag to support anchor tags that can submit a form.
      onComponentTagBody in class Form<T>
      markupStream - The markup stream
      openTag - The open tag for the body
    • generateHiddenInputMarkup

      Generates the Markup for the hidden input. Can be overridden by subclasses if necessary.
      The markup to be appended to the response
    • getFocusTrackerFieldCssId

      css id of the hidden form input that keeps track of the focused input field
    • getStateLocator

      IFilterStateLocator passed to this form
    • enableFocusTracking

      public final void enableFocusTracking(FormComponent<?> fc)
      Adds behavior to the form component to allow this form to keep track of the component's focus which will be restored after a form submit.
      fc - form component
    • getFocusTrackingHandler

      public final String getFocusTrackingHandler(Component component)
      Returns the javascript focus handler necessary to notify the form of focus tracking changes on the component Useful when components want to participate in focus tracking but want to add the handler their own way. A unique css id is required on the form component for focus tracking to work.
      component - component to
      the javascript focus handler necessary to notify the form of focus tracking changes on the component