Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Ajax debug-window removal

...

Code Block
languagejava
titledisable csp
public void init() {
  getCspSettings().blocking().disabled();
}

For more details see CSP paragraph .

Changes

Component placeholders and form hidden fields

...

Disabling the CSP will not make your application less secure than it was with Wicket 8, but you will miss the extra protection against attacks like XSS.

Flush and detach (and asynchronous page serialization)

Since Wicket 8.x pages were serialized asynchronously by default

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6177
, i.e. requests are processed, detached and flushed to the client without waiting for the serialization of the touched pages. This feature was introduced to reduce the response time for requests to Wicket pages.

However this resulted in possible race conditions, when consecutive requests hit an identical page instance, which is still under process of serialization from a prior request.

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6702

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6831
presents a better solution to this problem: Pages are always serialized synchronously now (storing the serialized data in a persistent storage is still done asynchronously though). But the request is now flushed to the client before detaching of the RequestCycle - besides other clean-up of the request this includes serialization of all touched pages
IRequestCycleListener#onEndRequest(), RequestCycle#onEndRequest() and Session#endRequest() are called before flush, thus allowing code to create
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6847
or invalidate a session
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6848
.

Note: This improvement was backported to WIcket 8.11.0.

API Changes

Deprecate package org.apache.wicket.util.time from wicket-util
Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6662

...

ModalWindow was deprecated and its usage should be replaced with the new ModalDialog implementation.

Deprecate Appliation#setHeaderResponseDecorator()
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6729

Applications now support multiple decorators for header responses. This simplifies adding a decorator:

Code Block
languagejava
titleWicket 9.x
// improved API 
getHeaderResponseDecorators().add(response -> new CustomResponse(response));

With the deprecated API you were required to keep a ResourceAggregator around. Its usage is not recommended, since it prevents usage of CSP (see above):

Code Block
languagejava
titleWicket 8.x
// deprecated API
setHeaderResponseDecorator(response -> new ResourceAggregator(new CustomResponse()));

Move ConversationPropagator.getPage

The method ConversationPropagator.getPage(IRequestHandler) has been moved to IPageRequestHandler.

Removals

Utility class available in JDK is removed 
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6783

...

Several workarounds for older browsers were removed. The special JavaScript event "inputchange" for IE is no longer supported and should be replaced with the standard "input change" instead.

The Ajax debug-window was removed, users should use their favorite browser's JS console instead.

AjaxFormChoiceComponentUpdatingBehavior and FormComponentUpdatingBehavior "change" event
Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6718

...

The old wicket-cdi  module based on CDI 1.0  has been replaced removed. The with wicket-cdi-1.1 module (based on CDI 1.1), which has been updated to CDI 2.0 and renamed to wicket-cdi. No code change or API break  has been required for this update, hence those . Those who were using wicket-cdi-1.1 should have no problem migrating switch to the new wicket-cdi  module. No other steps are needed. Anyone still using the old wicket-cdi module should migrate to CDI 2.0.

Use JQuery 3.x by default 
Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWICKET-6596

...