org.efaps.ui.wicket.behaviors
Class AjaxFieldUpdateBehavior
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
org.efaps.ui.wicket.behaviors.AjaxFieldUpdateBehavior
- All Implemented Interfaces:
- java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor
public class AjaxFieldUpdateBehavior
- extends org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
TODO comment!
- Version:
- $Id: AjaxFieldUpdateBehavior.java 3693 2010-02-03 03:58:25Z jan.moxter $
- Author:
- The eFaps Team
- See Also:
- Serialized Form
| Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
INDICATOR |
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
INTERFACE |
|
Method Summary |
protected java.lang.String |
getComponentMarkupId()
Method to get the ComponentMarkupId. |
protected void |
onBind()
|
protected void |
onError(org.apache.wicket.ajax.AjaxRequestTarget _target)
Default means nothing is done on error. |
protected void |
onEvent(org.apache.wicket.ajax.AjaxRequestTarget _target)
Overwritten to deactivate the visit of all other components
and the setting of model objects. |
protected void |
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget _target)
|
| Methods inherited from class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior |
getEventHandler, getForm, getPreconditionScript |
| Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior |
generateCallbackScript, getEvent, onCheckEvent, onComponentTag, respond, setThrottleDelay |
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getSuccessScript, onRequest, renderHead, throttleScript |
| Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution |
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onException, rendered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JS
public static final EFapsContentReference JS
- Reference to the javascript.
AjaxFieldUpdateBehavior
public AjaxFieldUpdateBehavior(java.lang.String _event)
- Parameters:
_event - event that this behavior should be executed on;
AjaxFieldUpdateBehavior
public AjaxFieldUpdateBehavior(java.lang.String _event,
org.apache.wicket.model.IModel<?> _model)
- Parameters:
_event - event that this behavior should be executed on;_model - model that willbe used on submit
onBind
protected void onBind()
- Overrides:
onBind in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
- See Also:
AbstractDefaultAjaxBehavior.onBind()
onError
protected void onError(org.apache.wicket.ajax.AjaxRequestTarget _target)
- Default means nothing is done on error.
- Specified by:
onError in class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
- Parameters:
_target - AjaxRequestTarget- See Also:
AjaxFormSubmitBehavior.onError(org.apache.wicket.ajax.AjaxRequestTarget)
onSubmit
protected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget _target)
- Specified by:
onSubmit in class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
- Parameters:
_target - AjaxRequestTarget- See Also:
AjaxFormSubmitBehavior.onSubmit(org.apache.wicket.ajax.AjaxRequestTarget)
getComponentMarkupId
protected java.lang.String getComponentMarkupId()
- Method to get the ComponentMarkupId.
- Returns:
- markup id of the component.
onEvent
protected void onEvent(org.apache.wicket.ajax.AjaxRequestTarget _target)
- Overwritten to deactivate the visit of all other components
and the setting of model objects. This would lead to an
error, because this component does not have a model.
- Overrides:
onEvent in class org.apache.wicket.ajax.form.AjaxFormSubmitBehavior
- Parameters:
_target - AjaxRequestTarget- See Also:
AjaxFormSubmitBehavior.onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
Copyright © 2003-2010 The eFaps Team. All Rights Reserved.