Skip to content

Commit

Permalink
[stateless] WICKET-5400 Behaviors#internalAdd(Behavior) erroneously g…
Browse files Browse the repository at this point in the history
…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 ecadd46
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Expand Up @@ -14,6 +14,14 @@ public StatelessAjaxEventBehavior(final String event)
super(event); super(event);
} }


@Override
protected void onBind()
{
super.onBind();

getComponent().getBehaviorId(this);
}

@Override @Override
public CharSequence getCallbackUrl() public CharSequence getCallbackUrl()
{ {
Expand All @@ -32,4 +40,4 @@ public CharSequence getCallbackUrl()
public boolean getStatelessHint(final Component component) { public boolean getStatelessHint(final Component component) {
return true; return true;
} }
} }
Expand Up @@ -23,6 +23,14 @@ public StatelessAjaxFormComponentUpdatingBehavior(final String event)
super(event); super(event);
} }


@Override
protected void onBind()
{
super.onBind();

getComponent().getBehaviorId(this);
}

@Override @Override
public CharSequence getCallbackUrl() public CharSequence getCallbackUrl()
{ {
Expand Down

0 comments on commit ecadd46

Please sign in to comment.