Created
February 10, 2013 13:08
-
-
Save nazartm/4749533 to your computer and use it in GitHub Desktop.
Ajax example in Wicket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Form form; | |
// form initialize | |
final TextField<String> messageField = new TextField<String>("messageField", Model.of("")); | |
messageField.add(new AjaxFormComponentUpdatingBehavior ("onkeyup") { | |
@Override | |
protected void onUpdate(AjaxRequestTarget target) { | |
myListenerMethod(); | |
target.addComponent(form); | |
} | |
}); | |
form.add(messageField); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input wicket:id="messageField" type="text" size="20" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment