Github user solomax commented on a diff in the pull request:
https://github.com/apache/wicket/pull/260#discussion_r164051979
--- Diff:
wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxTimerBehavior.java
---
@@ -92,6 +95,35 @@ public void renderHead(Component component,
IHeaderResponse response)
}
}
+ /**
+ * Can be overridden to provide different implementation
+ *
+ * @return the unique ID of JS timer
+ */
+ protected CharSequence createTimerId()
+ {
+ StringBuilder jsId = new
StringBuilder(getComponent().getMarkupId());
+ List<AbstractAjaxTimerBehavior> list =
getComponent().getBehaviors(AbstractAjaxTimerBehavior.class);
+ if (list.size() != 1)
+ {
+ for (int i = 0; i < list.size(); ++i)
+ {
+ if (list.get(i) == this)
+ {
+ jsId.append('_').append(i);
--- End diff --
I thought UUIDs are not being used cause it is long String.
This was my first idea. If there would be no better ideas I'll update PR
---