I just found a solution to get rid of the java.lang.IllegalStateException by
throwing another exception. I replaced the line
((WebResponse) getResponse ()).sendRedirect
("http://localhost:7101/WicketTest/welcome.html");
with the line
throw new
RedirectToUrlException("http://localhost:7101/WicketTest/welcome.html");
I wonder if this is the intended way to do it. Exceptions should normally
not used to control normal flow.
Thomas
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Response-already-committed-after-calling-WebResponse-sendRedirect-tp4674096p4674098.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]