I have the following code that is generating a ClassCastException that I do not fully understand,
(WebResponse)RequestCycle.get().getResponse(); The actual type of the value returned is org.apache.wicket.ajax.AbstractAjaxResponse$AjaxResponse. I'm trying to understand why this call returns an AjaxResponse instead of a WebResponse, in my case. I don't believe the code where this code get executed is in the context of Ajax. J.D.