Hello!
I have my own class, which I call AjaxTextField:
public class AjaxTextField extends TextField {
public AjaxTextField(String s, PropertyModel propertyModel) {
super(s, propertyModel);
OnChangeAjaxBehavior _onChangeAjaxBehavour = new
OnChangeAjaxBehavior(){
protected void onUpdate(AjaxRequestTarget ajaxRequestTarget) {
}
};
this.add(_onChangeAjaxBehavour);
}
}
This works gret, everytime I enter something in the TextField, the model
gets updated. The problem is when I erase the input from the TextField.
Scenario:
1) I enter "Hello" in the textfield
2) Refresh the page
3) The text "Hello" is still in the textfield ---> great
4) I erase the string "Hello" from the textfield
5) refresh the page
6) The textfield is not empty..the "H" is still there
It seems like the model gets updated until I try to erase the last (first)
token in the textfield.
Does anybody know why this is?
--
View this message in context:
http://www.nabble.com/TextField-with-OnChangeAjaxBehavior-tp19527799p19527799.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]