Sounds a bit hacky but here it goes:
- obtain the output stream via something like
((WebResponse)RequestCycle.get().getResponse()).get.... and write to it
- throw the wicket exception AbortRequestProcessing (I don't remember
the exact name, but it should extend WicketException)
Good luck,
Erik.
[EMAIL PROTECTED] wrote:
I badly need a way to stop the default request processing and responding back
to the client by writing response to the HttpResponse direclty.
I have a page say ProfilePage, in the page constructor on a certain
condition I want to write something to HttpResponse and stop further
processing and respond to the client.
How can i achieve this?
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]