Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying

Code Block

queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
----------------------------------------------------------------------------^

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

JavaScriptResourceReference#getDependencies() should return an appendable List

so we can do

Code Block

class MyReference extends JavascriptReference {
  getDependencies() { List<?> list=super.getDependencies(); list.add(...); return list; }
}