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.

Reply via email to