the code above is wrong.
1. no need of 'new'
2. Wicket.Ajax.(ajax|get|post) accepts an object (aka attributes).