Class HoneypotBehaviour

java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
com.evolveum.midpoint.gui.impl.component.form.HoneypotBehaviour
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class HoneypotBehaviour extends org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
Behaviour have to be added to form. Create fake fields for every input and validate their values.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

    org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.AjaxFormSubmitter
  • Field Summary

    Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

    INDICATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    onError(org.apache.wicket.markup.html.form.Form<?> form)
     
    protected void
    onEvent(org.apache.wicket.ajax.AjaxRequestTarget target)
     

    Methods inherited from class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior

    findForm, getDefaultProcessing, getForm, onAfterSubmit, onError, onSubmit, onSubmit, setDefaultProcessing, shouldTriggerJavaScriptSubmitEvent, updateAjaxAttributes

    Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior

    getEvent, onEvent, renderHead, respond

    Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

    findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes

    Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior

    afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind

    Methods inherited from class org.apache.wicket.behavior.Behavior

    beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.wicket.IRequestListener

    rendersPage
  • Constructor Details

    • HoneypotBehaviour

      public HoneypotBehaviour()
  • Method Details

    • onBind

      protected void onBind()
      Overrides:
      onBind in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
    • onError

      protected void onError(org.apache.wicket.markup.html.form.Form<?> form)
    • onEvent

      protected void onEvent(org.apache.wicket.ajax.AjaxRequestTarget target)
      Overrides:
      onEvent in class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior