Github user bitstorm commented on a diff in the pull request:
https://github.com/apache/wicket/pull/170#discussion_r63556050
--- Diff:
wicket-core/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java
---
@@ -81,7 +82,27 @@
@Override
protected void onBind()
{
- getComponent().setOutputMarkupId(true);
+ final Component component = getComponent();
+
+ component.setOutputMarkupId(true);
+
+ if (getStatelessHint(component))
+ {
+ //generate behavior id
+ component.getBehaviorId(this);
+ }
+ }
+
+ @Override
+ public CharSequence getCallbackUrl()
+ {
+ if (getStatelessHint(getComponent()))
+ {
+ final Url url =
Url.parse(super.getCallbackUrl().toString());
+ return UrlUtils.mergeParameters(url).toString();
--- End diff --
yes you are right, I haven't finished yet the refactoring. We can simplify
even more moving away getCallbackUrl from AbstractDefaultAjaxBehavior and using
it with page parameters only in StatelessAjaxEventBehavior.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---