Versions Compared

Key

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

...

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira:

Generics for org.apache.wicket.Component

...

Code Block
titleMyPage.java
borderStylesolid
  Component<Entity> c = new SomeComponent<>("id", model);

Assignee: mgrigorov
Status: Not started
Jira:

Servlet 3 as a minimum

...

Assignee: mgrigorov
Status: Not startedStarted
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

...

Assignee: mgrigorov
Status: Not started

Minor API cleanups

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)));
----------------------------------------------------------------------------^

The component is easily reachable via AbstractAjaxBehavior#getComponent()

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

...

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

Status: Done

XyzValidator#decorate() should work with IValidationError instead of ValidationError

...