You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stefan Franke (Jira)" <ji...@apache.org> on 2020/11/16 19:08:00 UTC
[jira] [Commented] (WICKET-6853) OnChangeAjaxBehaviour gets called
if there was no change
[ https://issues.apache.org/jira/browse/WICKET-6853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17233004#comment-17233004 ]
Stefan Franke commented on WICKET-6853:
---------------------------------------
Hi Sven,
how can someone distinguish the focus out onUpdate call from the onUpdate call before? The content is the same in both messages, so the model is not sufficient.
> OnChangeAjaxBehaviour gets called if there was no change
> --------------------------------------------------------
>
> Key: WICKET-6853
> URL: https://issues.apache.org/jira/browse/WICKET-6853
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 8.10.0
> Reporter: Stefan Franke
> Assignee: Sven Meier
> Priority: Minor
>
> Consider this code where a TextField gets a OnChangeAjaxBehaviour
> {code:java}
> //
> TextField<String> tf = new TextField<>("id", model);
> tf.add(new OnChangeAjaxBehaviour() {
> public void onUpdate(AjaxRequestTarget target) {
> LOG.debug("update");
> }
> }
> form.add(tf){code}
> The onUpdate() method is also called on focus out. But focus out does no updates.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)