...
Wicket-Guice's InjectionFlagCachingGuiceComponentInjector is removed. The replacement is GuiceComponentInjector. The caching mechanism that InjectionFlagCachingGuiceComponentInjector provided is moved to org.apache.wicket.injection.Injector so that the caching is re-used for both Wicket-Spring and Wicket-Guice.
Wicket-Guice no more supports method injection. The same could be achieved with field injection. This way it is the same as Wicket-Spring and the involved code is highly reused between the IOC projects.
Spring Example
In Wicket 1.4, you might have done this to configure your application to use @SpringBean
:
Code Block |
---|
@Override
protected void init()
{
// initialize Spring
addComponentInstantiationListener(new SpringComponentInjector(this, applicationContext));
}
|
In Wicket 1.5, you would do this:
Code Block |
---|
@Override
protected void init()
{
// initialize Spring
getComponentInstantiationListeners.add(new SpringComponentInjector(this, applicationContext))
}
|
Visitors
Visitors have been cleaned up. Dependency on magic return values defined in Component#IVisitor have been replaced with a Component#IVisit object that allows the visitor to control the flow of the traversal.
...
1.4 | 1.5 | ||
---|---|---|---|
org.apache.wicket.request.resource.ResourceReference | org.apache.wicket.request.resource.PackageResourceReference | ||
org.apache.wicket.RedirectToUrlException | org.apache.wicket.request.flow.RedirectToUrlException | ||
org.apache.wicket.Request | org.apache.wicket.request.Request | ||
org.apache.wicket.RequestCycle | org.apache.wicket.request.cycle.RequestCycle | ||
org.apache.wicket.RequestCycle.urlFor | org.apache.wicket.request.cycle.RequestCycle.renderUrlFor | ||
org.apache.wicket.util.lang.Objects.cloneObject(Object) | org.apache.wicket.util.lang.WicketObjects.cloneObject(Object) | ||
org.apache.wicket.protocol.http.WebRequest | org.apache.wicket.request.http.WebRequest | ||
org.apache.wicket.protocol.http.WebResponse | org.apache.wicket.request.http.WebResponse | ||
org.apache.wicket.request.target.basic.RedirectRequestTarget | RedirectRequestHandler | ||
org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy | use PageParameters.getNamedParameter(String) with any IRequestHandler | ||
org.apache.wicket.request.target.resource.ResourceStreamRequestTarget | import org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler | ||
org.apache.wicket.request.http.WebRequest.getHttpServletRequest() | org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContainerRequest() | ||
org.apache.wicket.protocol.http.WebApplication.newWebResponse(final HttpServletResponse) | (missing) | ||
org.apache.wicket.Application.set(Application) | org.apache.wicket.ThreadContext.setApplication(Application) | ||
org.apache.wicket.protocol.http.BufferedWebResponse.BufferedWebResponse(HttpServletResponse) | org.apache.wicket.protocol.http.BufferedWebResponse.BufferedWebResponse(WebResponse) | ||
org.apache.wicket.PageParameters | org.apache.wicket.request.mapper.parameter.PageParameters | ||
org.apache.wicket.PageParameters.put(String, String) | org.apache.wicket.request.mapper.parameter.PageParameters.set(String, Object) | ||
org.apache.wicket.PageParameters.getInt(String) | org.apache.wicket.request.mapper.parameter.PageParameters.get(String).toInt() | ||
org.apache.wicket.protocol.http.HttpSessionStore | org.apache.wicket.session.HttpSessionStore | ||
org.apache.wicket.protocol.http.WebApplication.newSessionStore() | (missing, HttpSessionStore is the only supported) | ||
org.apache.wicket.markup.html.resources.CompressedResourceReference | org.apache.wicket.request.resource.CompressedResourceReference | ||
org.apache.wicket.markup.html.resources.JavascriptResourceReference | org.apache.wicket.request.resource.JavascriptResourceReference | ||
org.apache.wicket.markup.html.image.Image.Image(String) | (this constructor is protected in 1.5, as replacement can be used NonCachingImage(String)) | ||
org.apache.wicket.markup.html.image.resource.DynamicImageResource | org.apache.wicket.request.resource.DynamicImageResource | ||
org.apache.wicket.util.convert.ConverterLocator | org.apache.wicket.ConverterLocator | ||
org.apache.wicket.util.lang.Objects | org.apache.wicket.util.lang.WicketObjects | ||
org.apache.wicket.protocol.http.WebApplication.sessionDestroyed(String) | org.apache.wicket.protocol.http.WebApplication.sessionUnbound(String) | ||
org.apache.wicket.protocol.https.HttpsRequestCycleProcessor | org.apache.wicket.protocol.https.HttpsMapper | ||
org.apache.wicket.protocol.http.WebRequestCycle.newBrowserInfoPage(String) | org.apache.wicket.protocol.http.WebSession.newBrowserInfoPage(String) | ||
org.apache.wicket.protocol.http.WebApplication.newWebRequest(HttpServletRequest) | org.apache.wicket.protocol.http.WebApplication.newWebRequest(HttpServletRequest, String) | ||
org.apache.wicket.protocol.http.WebApplication.newWebResponse(HttpServletResponse) | org.apache.wicket.protocol.http.WebApplication.newWebResponse(HttpServletRequest, HttpServletResponse) | ||
org.apache.wicket.protocol.http.WebApplication.mountBookmarkablePage(String, Class) | org.apache.wicket.protocol.http.WebApplication.mountPage(String, Class) | ||
org.apache.wicket.resource.loader.IStringResourceLoader.loadStringResource(Component, String) | org.apache.wicket.resource.loader.IStringResourceLoader.loadStringResource(Component, String, Locale, String, String) | ||
org.apache.wicket.ajax.IAjaxCallDecorator.decorateScript(CharSequence) | org.apache.wicket.ajax.IAjaxCallDecorator.decorateScript(Component, CharSequence) | ||
org.apache.wicket.IResponseFilter (and all default implementations) | org.apache.wicket.response.filter.IResponseFilter | ||
org.apache.wicket.markup.html.form.Form.process() | org.apache.wicket.markup.html.form.Form.process(IFormSubmittingComponent) | ||
org.apache.wicket.Application.addComponentInstantiationListener() | org.apache.wicket.Application.getComponentInstantiationListeners().add() | ||
org.apache.wicket.markup.html.DynamicWebResource | org.apache.wicket.request.resource.ByteArrayResource | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d62c4e04f7e5aa1b-d14d5ef0-4e5a41a3-a3aca364-3333f1c003932aceebee7e39"><ac:plain-text-body><![CDATA[ | org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.DataTable(String, IColumn<T>[], IDataProvider<T>, int) | org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.DataTable(String, List<IColumn<T>>, IDataProvider<T>, int) | ]]></ac:plain-text-body></ac:structured-macro> |
org.apache.wicket.validation.IValidatorAddListener | Validator.bind(Component) | ||
org.apache.wicket.behavior.AbstractBehavior.renderHead(IHeaderResponse) | org.apache.wicket.behavior.Behavior.renderHead(Component, IHeaderResponse) | ||
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy | org.apache.wicket.request.mapper.CryptoMapper | ||
org.apache.wicket.util.template.PackagedTextTemplate | org.apache.wicket.util.template.PackageTextTemplate | ||
org.apache.wicket.extensions.ajax.markup.html.repeater.data.sort.AjaxFallbackOrderByLink.onAjaxClick(AjaxRequestTarget) | org.apache.wicket.extensions.ajax.markup.html.repeater.data.sort.AjaxFallbackOrderByLink.onClick(AjaxRequestTarget) | ||
org.apache.wicket.util.file.IFileUploadCleaner | org.apache.wicket.util.file.IFileCleaner |