On Fri, Jul 27, 2012 at 1:10 PM, Martin Grigorov <[email protected]> wrote: >> It looks like an API addition, so that can go in 6.1 (unfortunately, >> AjaxRequestTarget is now an interface, so it might have to wait until >> 7) > > I'd use 'fortunately' because now I can setup my own impl that has > these additional methods and I'm able to provide my own wicket-ajax.js > with the needed additions ;-)
But that will introduce the need to add instanceof's and (MyAjaxRequestTargetWithAdditionalMethods) casts. Whereas you can just add the methods to the class without breaking current implementations against the interface. Now we can't add this to 6.1 (without casts and instanceofs) because it breaks API. Before we start painting the bike shed, it's unfortunate that we don't have Java 8 to do this properly. Wicket 8? Martijn
