Migration to Wicket 7.0Page edited by Martin GrigorovChanges (1)
Full ContentMigrating to Wicket 7.0
EnvironmentWicket 7.0 requires at least Java 7Wicket 7.0 requires Servlet 3.0The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request. API changesorg/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0 org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.BoxBorder class has been deprecated in Wicket 6.x series org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions. org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable List<HeaderItem> WICKET-5124The old API returned Iterable<? extends HeaderItem> and was inconvenient to override and add additional dependencies. MyResourceReference.java @Override public List<HeaderItem> getDependencies() { List<HeaderItem> dependencies = super.getDependencies(); dependencies.add(dep1); dependencies.add(dep2); return dependencies; }
If in your application you have code like: MyComponent.java StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]); then the simplest solution is to use Model.of("Some default value"): MyComponent.java StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]); org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174This method now accepts IValidationError as an argument and returns IValidationError. This way it can be used with other IValidationError implementations like RawValidationError for example. Behavior changesorg.apache.wicket.request.Url#getQueryString WICKET-4664Url#getQueryString() now behaves as HttpServletRequest behaves :
RequestUtils#decodeParameters() now strips the "?" from the output value. org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934The value of the file name used in "Content-Disposition" response header can contain characters which should be encoded Dependency updatesAll libraries on which Wicket modules depend are updated to their latest stable versions.
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence
- [CONF] Apache Wicket > Migration to Wicket 7.0 confluence