org.wicketstuff.validation.client
Class ClientAndServerValidatingFeedbackBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.wicketstuff.validation.client.ClientAndServerValidatingFeedbackBehavior
All Implemented Interfaces:
Serializable, IClusterable

public class ClientAndServerValidatingFeedbackBehavior
extends Behavior

By adding this behavior to a feedback panel or other WebMarkupContainer, the client and server validating engine will render the errors as if they were inserted into a feedback panel rather than just using the default behavior, which is to use an alert message to notify the user of the errors.

Author:
Jeremy Thomerson
See Also:
Serialized Form

Constructor Summary
ClientAndServerValidatingFeedbackBehavior(Form<?> form)
           
 
Method Summary
 void bind(Component component)
           
protected  void checkComponentIsWebMarkupContainer(Component component)
           
 void renderHead(Component c, IHeaderResponse response)
           
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onException, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientAndServerValidatingFeedbackBehavior

public ClientAndServerValidatingFeedbackBehavior(Form<?> form)
Method Detail

bind

public void bind(Component component)
Overrides:
bind in class Behavior

checkComponentIsWebMarkupContainer

protected final void checkComponentIsWebMarkupContainer(Component component)

renderHead

public void renderHead(Component c,
                       IHeaderResponse response)
Overrides:
renderHead in class Behavior


Copyright © 2011. All Rights Reserved.