Most likely because it is an Ajax response... :)

Do you have the AjaxIndicator somewhere on your page and does it indicate an
Ajax request cycle happening?
What about while in DEVELOPMENT mode, can you monitor the page activity
using the Wicket Ajax Debug Window?

FYI, while in DEVELOPMENT mode you might want to add the DebugBar to your
page as well.

~ Thank you,
  Paul Bors

-----Original Message-----
From: Corbin, James [mailto:[email protected]] 
Sent: Monday, December 10, 2012 2:33 PM
To: [email protected]
Subject: ClassCastException (WebResponse)

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to