Java:
item.add(new AjaxLink("edit"){
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(new UnitPage(unit));
}
});
HTML:
<td><button wicket:id="edit">Edit</button></td>
This worked fine in 1.4 - clicking the button would take me to the new page with a "unit" object passed as parameter.
In 1.5 this is no longer working - it doesn't look like the onClick is firing.