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 >
