WICKET-5142 Generating invalid JavaScript for ajax update