org.wicketstuff.stateless
Class StatelessAjaxFormSubmitBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.wicketstuff.stateless.StatelessAjaxEventBehavior
                      extended by org.wicketstuff.stateless.StatelessAjaxFormSubmitBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class StatelessAjaxFormSubmitBehavior
extends StatelessAjaxEventBehavior

Stateless version of AjaxFormSubmitBehavior.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
StatelessAjaxFormSubmitBehavior(String event)
          Instantiates a new stateless ajax form submit behavior.
 
Method Summary
protected  org.apache.wicket.markup.html.form.Form<?> findForm()
          Finds form that will be submitted.
 boolean getDefaultFormProcessing()
          Gets the default form processing.
protected  org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()
           
protected  void onAfterSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
          Override this method to provide special submit handling in a multi-button form.
protected  void onError(org.apache.wicket.ajax.AjaxRequestTarget target)
          Listener method invoked when the form has been processed and errors occurred.
protected  void onEvent(org.apache.wicket.ajax.AjaxRequestTarget target)
           
protected  void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
          Override this method to provide special submit handling in a multi-button form.
 void setDefaultFormProcessing(boolean defaultFormProcessing)
          Sets the default form processing.
protected  void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
           
 
Methods inherited from class org.wicketstuff.stateless.StatelessAjaxEventBehavior
getCallbackUrl, getStatelessHint, onBind
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
getEvent, onCheckEvent, renderHead, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessAjaxFormSubmitBehavior

public StatelessAjaxFormSubmitBehavior(String event)
Instantiates a new stateless ajax form submit behavior.

Parameters:
event - the event
Method Detail

getPageParameters

protected org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()
Specified by:
getPageParameters in class StatelessAjaxEventBehavior

updateAjaxAttributes

protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
Overrides:
updateAjaxAttributes in class org.apache.wicket.ajax.AjaxEventBehavior

findForm

protected org.apache.wicket.markup.html.form.Form<?> findForm()
Finds form that will be submitted.

Returns:
form to submit or null if none found

onEvent

protected void onEvent(org.apache.wicket.ajax.AjaxRequestTarget target)
Specified by:
onEvent in class org.apache.wicket.ajax.AjaxEventBehavior

onAfterSubmit

protected void onAfterSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
Override this method to provide special submit handling in a multi-button form. This method will be called after the form's onSubmit method.

Parameters:
target - the target

onSubmit

protected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
Override this method to provide special submit handling in a multi-button form. This method will be called before the form's onSubmit method.

Parameters:
target - the target

onError

protected void onError(org.apache.wicket.ajax.AjaxRequestTarget target)
Listener method invoked when the form has been processed and errors occurred.

Parameters:
target - the target

getDefaultFormProcessing

public boolean getDefaultFormProcessing()
Gets the default form processing.

Returns:
the default form processing

setDefaultFormProcessing

public void setDefaultFormProcessing(boolean defaultFormProcessing)
Sets the default form processing.

Parameters:
defaultFormProcessing - the new default form processing


Copyright © 2016. All rights reserved.