There's a way to make the memory consumption less: We can store on demand in the data[] field in Component, but that means that we need to overhaul the event dispatch system to work with this instead of overriding a method...
Martijn On Tue, Nov 15, 2016 at 8:47 AM, Rob Audenaerde <[email protected]> wrote: > Martijn, thanks for feedback, I never considered the memory consumption of > those extra fields. It will add up if you have many of these components. > > And have fun at the ApacheCon! > > On Mon, Nov 14, 2016 at 11:06 PM, Martijn Dashorst < > [email protected]> wrote: > >> Also, thanks for your suggestion! I'll make a note of it for my >> ApacheCon presentation about Wicket 8 and Java 8 :-). >> >> It illustrates why grafting Lambda's isn't easy. >> >> Martijn >> >> On Mon, Nov 14, 2016 at 10:32 PM, Rob Audenaerde >> <[email protected]> wrote: >> > Just a wild idea, if the AjaxSubmitLink supports chaining in the onSubmit >> > (return this instead of void) , it could become: >> > >> > form.add(new AjaxSubmitLink >> > ("opslaan").onSubmit(function).onError(function); >> > >> > Very readable imho. >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> -- Become a Wicket expert, learn from the best: http://wicketinaction.com
