Permalink
Browse files

[stateless] WICKET-5400 Behaviors#internalAdd(Behavior) erroneously g…

…ets id for stateless behaviors

Explicitly get an id for the stateless behavior
  • Loading branch information...
martin-g committed Nov 11, 2013
1 parent e675293 commit ecadd460a17387fef7399223137f5fa1e86d5a32
@@ -14,6 +14,14 @@ public StatelessAjaxEventBehavior(final String event)
super(event);
}
@Override
protected void onBind()
{
super.onBind();
getComponent().getBehaviorId(this);
}
@Override
public CharSequence getCallbackUrl()
{
@@ -32,4 +40,4 @@ public CharSequence getCallbackUrl()
public boolean getStatelessHint(final Component component) {
return true;
}
}
}
@@ -23,6 +23,14 @@ public StatelessAjaxFormComponentUpdatingBehavior(final String event)
super(event);
}
@Override
protected void onBind()
{
super.onBind();
getComponent().getBehaviorId(this);
}
@Override
public CharSequence getCallbackUrl()
{

0 comments on commit ecadd46

Please sign in to comment.